Edits: Support edits in e2e rooms

This commit is contained in:
manuroe
2019-06-25 18:32:34 +02:00
parent 516be40462
commit f499412599
@@ -29,7 +29,8 @@ NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncrypt
{
encryptionIcon = @"e2e_unencrypted";
if (event.isLocalEvent)
if (event.isLocalEvent
|| 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
MXRoom *room = [session roomWithRoomId:event.roomId];