mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Fix poll ended event rendering
This commit is contained in:
parent
9441f6955a
commit
32d4dc2a85
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue