Fix poll ended event rendering

This commit is contained in:
Alfonso Grillo 2023-03-02 17:49:15 +01:00
parent 9441f6955a
commit 32d4dc2a85

View file

@ -1072,6 +1072,15 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
// We do not want to merge room create event cells with other cell types
return NO;
}
if (self.tag == RoomBubbleCellDataTagPoll) {
MXEvent* event = self.events.firstObject;
if (event) {
// m.poll.ended events should always show the sender information
return event.eventType != MXEventTypePollEnd;
}
}
if (self.hasThreadRoot || bubbleCellData.hasThreadRoot)
{