mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 19:56:57 +02:00
Fix reactions layout
This commit is contained in:
@@ -2885,6 +2885,10 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
|
||||
return YES;
|
||||
}
|
||||
|
||||
if (event.eventType == MXEventTypePollEnd) {
|
||||
return YES;
|
||||
}
|
||||
|
||||
// Specific case for voice broadcast event
|
||||
if (event.eventType == MXEventTypeCustom &&
|
||||
[event.type isEqualToString:VoiceBroadcastSettings.voiceBroadcastInfoContentKeyType]) {
|
||||
|
||||
@@ -636,7 +636,7 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
__block NSInteger firstVisibleComponentIndex = NSNotFound;
|
||||
|
||||
MXEvent *firstEvent = self.events.firstObject;
|
||||
BOOL isPoll = (firstEvent.eventType == MXEventTypePollStart);
|
||||
BOOL isPoll = (self.events.firstObject.eventType == MXEventTypePollStart || self.events.firstObject.eventType == MXEventTypePollEnd);
|
||||
BOOL isVoiceBroadcast = (firstEvent.eventType == MXEventTypeCustom && [firstEvent.type isEqualToString: VoiceBroadcastSettings.voiceBroadcastInfoContentKeyType]);
|
||||
|
||||
if ((isPoll || self.attachment || isVoiceBroadcast) && self.bubbleComponents.count)
|
||||
|
||||
Reference in New Issue
Block a user