mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-08 20:08:06 +02:00
Merge branch 'main' of https://github.com/vitorpamplona/amethyst
This commit is contained in:
commit
ed6c1e62e4
@ -231,7 +231,7 @@ object NostrAccountDataSource : NostrDataSource("AccountData") {
|
||||
|
||||
override fun updateChannelFilters() {
|
||||
return if (hasLoadedTheBasics[account.userProfile()] != null) {
|
||||
// gets everthing about the user logged in
|
||||
// gets everything about the user logged in
|
||||
accountChannel.typedFilters = listOfNotNull(
|
||||
createAccountMetadataFilter(),
|
||||
createAccountContactListFilter(),
|
||||
|
@ -43,7 +43,7 @@ fun SlidingCarousel(
|
||||
}
|
||||
|
||||
// you can remove the surface in case you don't want
|
||||
// the transparant bacground
|
||||
// the transparent bacground
|
||||
Surface(
|
||||
modifier = Modifier
|
||||
.padding(bottom = 8.dp)
|
||||
|
@ -80,6 +80,6 @@ fun /*SodiumAndroid.*/cryptoStreamXChaCha20Xor(
|
||||
): ByteArray? {
|
||||
val mLen = messageBytes.size
|
||||
val cipher = ByteArray(mLen)
|
||||
val sucessful = cryptoStreamXChaCha20Xor(libSodium, cipher, messageBytes, mLen.toLong(), nonce, key.asBytes)
|
||||
return if (sucessful) cipher else null
|
||||
val successful = cryptoStreamXChaCha20Xor(libSodium, cipher, messageBytes, mLen.toLong(), nonce, key.asBytes)
|
||||
return if (successful) cipher else null
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ class ChatMessageEvent(
|
||||
sig: HexKey
|
||||
) : WrappedEvent(id, pubKey, createdAt, kind, tags, content, sig), ChatroomKeyable {
|
||||
/**
|
||||
* Recepients intended to receive this conversation
|
||||
* Recipients intended to receive this conversation
|
||||
*/
|
||||
fun recipientsPubKey() = tags.mapNotNull {
|
||||
if (it.size > 1 && it[0] == "p") it[1] else null
|
||||
|
Loading…
x
Reference in New Issue
Block a user