Make use of MXRoom.roomId and MXRoom.summary instead of MXRooms.state

This commit is contained in:
manuroe
2018-07-16 22:30:55 +02:00
parent d48930eea5
commit e3f204562b
20 changed files with 48 additions and 48 deletions
@@ -33,7 +33,7 @@ NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncrypt
{
// 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];
if (room.state.isEncrypted && session.crypto)
if (room.summary.isEncrypted && session.crypto)
{
// The outgoing message are encrypted by default
encryptionIcon = @"e2e_verified";