Vitor Pamplona 2024-01-05 16:46:30 -05:00
commit ed6c1e62e4
4 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -231,7 +231,7 @@ object NostrAccountDataSource : NostrDataSource("AccountData") {
override fun updateChannelFilters() { override fun updateChannelFilters() {
return if (hasLoadedTheBasics[account.userProfile()] != null) { return if (hasLoadedTheBasics[account.userProfile()] != null) {
// gets everthing about the user logged in // gets everything about the user logged in
accountChannel.typedFilters = listOfNotNull( accountChannel.typedFilters = listOfNotNull(
createAccountMetadataFilter(), createAccountMetadataFilter(),
createAccountContactListFilter(), createAccountContactListFilter(),

Wyświetl plik

@ -43,7 +43,7 @@ fun SlidingCarousel(
} }
// you can remove the surface in case you don't want // you can remove the surface in case you don't want
// the transparant bacground // the transparent bacground
Surface( Surface(
modifier = Modifier modifier = Modifier
.padding(bottom = 8.dp) .padding(bottom = 8.dp)

Wyświetl plik

@ -80,6 +80,6 @@ fun /*SodiumAndroid.*/cryptoStreamXChaCha20Xor(
): ByteArray? { ): ByteArray? {
val mLen = messageBytes.size val mLen = messageBytes.size
val cipher = ByteArray(mLen) val cipher = ByteArray(mLen)
val sucessful = cryptoStreamXChaCha20Xor(libSodium, cipher, messageBytes, mLen.toLong(), nonce, key.asBytes) val successful = cryptoStreamXChaCha20Xor(libSodium, cipher, messageBytes, mLen.toLong(), nonce, key.asBytes)
return if (sucessful) cipher else null return if (successful) cipher else null
} }

Wyświetl plik

@ -18,7 +18,7 @@ class ChatMessageEvent(
sig: HexKey sig: HexKey
) : WrappedEvent(id, pubKey, createdAt, kind, tags, content, sig), ChatroomKeyable { ) : 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 { fun recipientsPubKey() = tags.mapNotNull {
if (it.size > 1 && it[0] == "p") it[1] else null if (it.size > 1 && it[0] == "p") it[1] else null