Message decoration: Do not decorate state events

#2947
This commit is contained in:
manuroe
2020-01-28 15:53:09 +01:00
parent 68d7342480
commit d66a2929d2
@@ -37,10 +37,9 @@ NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncrypt
if (!event.isEncrypted)
{
if (event.isLocalEvent
|| event.isState
|| event.contentHasBeenEdited) // Local echo for an edit is clear but uses a true event id, the one of the edited event
{
// Patch: Display the verified icon by default on pending outgoing messages in the encrypted rooms when the encryption is enabled
// The outgoing message are encrypted by default
encryptionIconName = nil;
}
else