mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Fix display of encrypted events
This commit is contained in:
@@ -152,7 +152,13 @@ fun EncryptDecryptData(
|
||||
}
|
||||
}
|
||||
} else {
|
||||
val content = if (type.name.contains("ENCRYPT") && encryptedData is ClearTextEncryptedDataKind) encryptedData.text else encryptedData?.result ?: ""
|
||||
val content = if (type.name.contains("ENCRYPT") && encryptedData is ClearTextEncryptedDataKind) {
|
||||
encryptedData.text
|
||||
} else if (encryptedData is TagArrayEncryptedDataKind) {
|
||||
encryptedData.tagArray.map { it.toList() }.toList().toString()
|
||||
} else {
|
||||
encryptedData?.result ?: ""
|
||||
}
|
||||
Text(
|
||||
content,
|
||||
modifier = Modifier
|
||||
@@ -288,7 +294,13 @@ fun BunkerEncryptDecryptData(
|
||||
}
|
||||
}
|
||||
} else {
|
||||
val content = if (type.name.contains("ENCRYPT") && encryptedData is ClearTextEncryptedDataKind) encryptedData.text else encryptedData?.result ?: ""
|
||||
val content = if (type.name.contains("ENCRYPT") && encryptedData is ClearTextEncryptedDataKind) {
|
||||
encryptedData.text
|
||||
} else if (encryptedData is TagArrayEncryptedDataKind) {
|
||||
encryptedData.tagArray.map { it.toList() }.toList().toString()
|
||||
} else {
|
||||
encryptedData?.result ?: ""
|
||||
}
|
||||
Text(
|
||||
content,
|
||||
modifier = Modifier
|
||||
|
||||
Reference in New Issue
Block a user