Merge pull request #2719 from nrobi144/fix/bunker-timeout-and-decrypt

fix(nip46): fix bunker decrypt/encrypt parsing and increase timeout
This commit is contained in:
Vitor Pamplona
2026-05-04 08:09:33 -04:00
committed by GitHub
8 changed files with 329 additions and 34 deletions
@@ -455,7 +455,7 @@ private fun MessageWithReactions(
try {
event.decryptContent(account.signer)
} catch (_: Exception) {
event.content
null
}
}
@@ -597,11 +597,22 @@ private fun MessageWithReactions(
else -> {
SelectionContainer {
Text(
text = decryptedContent ?: "",
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurface,
)
if (decryptedContent != null) {
Text(
text = decryptedContent!!,
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.onSurface,
)
} else {
Text(
text = "Could not decrypt the message",
style =
MaterialTheme.typography.bodyMedium.copy(
fontStyle = androidx.compose.ui.text.font.FontStyle.Italic,
),
color = MaterialTheme.colorScheme.onSurfaceVariant,
)
}
}
}
}