mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Do not group events containing thread roots
This commit is contained in:
@@ -979,11 +979,22 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
return NO;
|
||||
}
|
||||
|
||||
if (self.hasThreadRoot || bubbleCellData.hasThreadRoot)
|
||||
{
|
||||
// We do not want to merge events containing thread roots
|
||||
return NO;
|
||||
}
|
||||
|
||||
return [super hasSameSenderAsBubbleCellData:bubbleCellData];
|
||||
}
|
||||
|
||||
- (BOOL)addEvent:(MXEvent*)event andRoomState:(MXRoomState*)roomState
|
||||
{
|
||||
if (self.hasThreadRoot)
|
||||
{
|
||||
// We don't want to add any events into this bubble data if it's a thread root
|
||||
return NO;
|
||||
}
|
||||
RoomTimelineConfiguration *timelineConfiguration = [RoomTimelineConfiguration shared];
|
||||
|
||||
if (NO == [timelineConfiguration.currentStyle canAddEvent:event and:roomState to:self]) {
|
||||
|
||||
Reference in New Issue
Block a user