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() {
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(),

Wyświetl plik

@ -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)

Wyświetl plik

@ -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
}

Wyświetl plik

@ -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