Fix bubble cell visibility (#6893)

This commit is contained in:
Yoan Pintas
2022-10-17 17:44:38 +02:00
committed by GitHub
parent b1651a330e
commit bed02f8bc9
@@ -289,23 +289,22 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
hasNoDisplay = NO;
break;
case RoomBubbleCellDataTagPoll:
if (self.events.lastObject.isEditEvent) {
hasNoDisplay = YES;
if (!self.events.lastObject.isEditEvent)
{
hasNoDisplay = NO;
}
hasNoDisplay = NO;
break;
case RoomBubbleCellDataTagLocation:
hasNoDisplay = NO;
break;
case RoomBubbleCellDataTagLiveLocation:
// If the summary does not exist don't show the cell
if (!self.beaconInfoSummary)
// Show the cell only if the summary exists
if (self.beaconInfoSummary)
{
hasNoDisplay = YES;
hasNoDisplay = NO;
}
hasNoDisplay = NO;
break;
case RoomBubbleCellDataTagVoiceBroadcast:
hasNoDisplay = YES;