mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Highlight thread root event in the timeline
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user