Highlight thread root event in the timeline

This commit is contained in:
ismailgulek
2021-11-15 13:50:08 +03:00
parent e052a2bc87
commit 3b0d241208
3 changed files with 53 additions and 4 deletions
@@ -774,14 +774,15 @@ const CGFloat kTypingCellHeight = 24;
}
// Manage initial event (case of permalink or search result)
if (self.timeline.initialEventId && self.markTimelineInitialEvent)
if ((self.timeline.initialEventId && self.markTimelineInitialEvent) || self.highlightedEventId)
{
// Check if the cell contains this initial event
for (NSUInteger index = 0; index < bubbleComponents.count; index++)
{
MXKRoomBubbleComponent *component = bubbleComponents[index];
if ([component.event.eventId isEqualToString:self.timeline.initialEventId])
if ([component.event.eventId isEqualToString:self.timeline.initialEventId]
|| [component.event.eventId isEqualToString:self.highlightedEventId])
{
// If yes, mark the event
[bubbleCell markComponent:index];