mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 15:52:40 +00:00
RoomBubbleCellData: Handle event merge configuration.
This commit is contained in:
parent
d2ba53e37b
commit
9b02f6585e
1 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue