RoomBubbleCellData: Handle event merge configuration.

This commit is contained in:
SBiOSoftWhare
2022-01-14 11:14:50 +01:00
parent 79ecc8b4d6
commit ab40dcd98f
@@ -826,6 +826,12 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
- (BOOL)addEvent:(MXEvent*)event andRoomState:(MXRoomState*)roomState
{
RoomTimelineConfiguration *timelineConfiguration = [RoomTimelineConfiguration shared];
if (NO == [timelineConfiguration.currentStyle canAddEvent:event and:roomState to:self]) {
return NO;
}
BOOL shouldAddEvent = YES;
switch (self.tag)