mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix the string used for encrypted events in the room list. (#3030)
I don't think its actually meant to be shown but this should still be correct if it is.
This commit is contained in:
@@ -32,8 +32,12 @@ struct RoomEventStringBuilder {
|
||||
}
|
||||
|
||||
switch eventItemProxy.content.kind() {
|
||||
case .unableToDecrypt:
|
||||
return prefix(L10n.commonDecryptionError, with: displayName)
|
||||
case .unableToDecrypt(let encryptedMessage):
|
||||
let errorMessage = switch encryptedMessage {
|
||||
case .megolmV1AesSha2(_, .membership): L10n.commonUnableToDecryptNoAccess
|
||||
default: L10n.commonWaitingForDecryptionKey
|
||||
}
|
||||
return prefix(errorMessage, with: displayName)
|
||||
case .redactedMessage:
|
||||
return prefix(L10n.commonMessageRemoved, with: displayName)
|
||||
case .sticker:
|
||||
|
||||
Reference in New Issue
Block a user