Fix typos
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user