RoomBubbleCellData: Handle event merge configuration.

This commit is contained in:
SBiOSoftWhare 2022-01-14 11:14:50 +01:00
parent d2ba53e37b
commit 9b02f6585e

View file

@ -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)