Bug Fix - Chat screen: several encryption icons are displayed on the same event.

Fix tap handling on encryption icons

(related to #1361)
This commit is contained in:
Giom Foret
2017-06-28 21:15:09 +02:00
parent ffc142f64b
commit a76e4d3ced
11 changed files with 181 additions and 35 deletions
@@ -95,6 +95,12 @@ NSString *const kRoomEncryptedDataBubbleCellTapOnEncryptionIcon = @"kRoomEncrypt
for (NSUInteger componentIndex = 0; componentIndex < bubbleComponents.count; componentIndex++)
{
component = bubbleComponents[componentIndex];
// Ignore components without display.
if (!component.attributedTextMessage)
{
continue;
}
UIImage *icon = [RoomEncryptedDataBubbleCell encryptionIconForEvent:component.event andSession:bubbleData.mxSession];
UIImageView *encryptStatusImageView = [[UIImageView alloc] initWithImage:icon];