kopia lustrzana https://github.com/vitorpamplona/amethyst
Merge pull request #640 from greenart7c3/encryption_amber
try to fix messages being encrypted twice using amberpull/641/head
commit
dd2e590475
|
@ -274,6 +274,8 @@ object ExternalSignerUtils {
|
|||
}
|
||||
|
||||
fun encrypt(decryptedContent: String, pubKey: HexKey, id: String, signerType: SignerType = SignerType.NIP04_ENCRYPT) {
|
||||
content.remove(id)
|
||||
cachedDecryptedContent.remove(id)
|
||||
val result = getDataFromResolver(signerType, arrayOf(decryptedContent, pubKey))
|
||||
if (result !== null) {
|
||||
content.put(id, result)
|
||||
|
|
Ładowanie…
Reference in New Issue