Skip to content

Commit

Permalink
Merge pull request #7402 from vector-im/alfogrillo/fix_poll_bubbles
Browse files Browse the repository at this point in the history
Fix poll ended event rendering (PSG-1177)
  • Loading branch information
Alfonso Grillo authored Mar 3, 2023
2 parents 9441f69 + a0dbd97 commit 47d50d7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Riot/Modules/Room/CellData/RoomBubbleCellData.m
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,15 @@ - (BOOL)hasSameSenderAsBubbleCellData:(id<MXKRoomBubbleCellDataStoring>)bubbleCe
// 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)
{
Expand Down
1 change: 1 addition & 0 deletions changelog.d/pr-7402.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Polls: improve rendering of poll ended events.

0 comments on commit 47d50d7

Please sign in to comment.