Fixes vector-im/element-ios/issues/6241 - Prevent random crashes when tapping links. Avoid displaying the confirmation alert for plain text ones.

This commit is contained in:
Stefan Ceriu
2022-06-08 10:37:32 +03:00
committed by Stefan Ceriu
parent 55d6519436
commit 4c9eb5138f
3 changed files with 20 additions and 7 deletions
@@ -1077,6 +1077,12 @@ static BOOL _disableLongPressGestureOnEvent;
NSArray *bubbleComponents = bubbleData.bubbleComponents;
if (bubbleComponents.count == 1) {
return bubbleComponents.firstObject;
}
// The position check below fails for bubble data with a single component when message
// bubbles are enabled, thus the early bailout above
for (MXKRoomBubbleComponent *component in bubbleComponents)
{
// Ignore components without display (For example redacted event or state events)