mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Merge branch 'develop' into ismail/5068_start_thread
This commit is contained in:
@@ -149,6 +149,15 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
|
||||
// Show timestamps always on right
|
||||
self.displayTimestampForSelectedComponentOnLeftWhenPossible = NO;
|
||||
break;
|
||||
}
|
||||
case MXEventTypePollStart:
|
||||
{
|
||||
self.tag = RoomBubbleCellDataTagPoll;
|
||||
self.collapsable = NO;
|
||||
self.collapsed = NO;
|
||||
|
||||
break;
|
||||
}
|
||||
case MXEventTypeCustom:
|
||||
{
|
||||
@@ -259,6 +268,11 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
return NO;
|
||||
}
|
||||
|
||||
if (self.tag == RoomBubbleCellDataTagPoll)
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
||||
return [super hasNoDisplay];
|
||||
}
|
||||
|
||||
@@ -428,7 +442,9 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
{
|
||||
__block NSInteger firstVisibleComponentIndex = NSNotFound;
|
||||
|
||||
if (self.attachment && self.bubbleComponents.count)
|
||||
BOOL isPoll = (self.events.firstObject.eventType == MXEventTypePollStart);
|
||||
|
||||
if ((isPoll || self.attachment) && self.bubbleComponents.count)
|
||||
{
|
||||
firstVisibleComponentIndex = 0;
|
||||
}
|
||||
@@ -913,6 +929,9 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
|
||||
case MXEventTypeCallReject:
|
||||
shouldAddEvent = NO;
|
||||
break;
|
||||
case MXEventTypePollStart:
|
||||
shouldAddEvent = NO;
|
||||
break;
|
||||
case MXEventTypeCustom:
|
||||
{
|
||||
if ([event.type isEqualToString:kWidgetMatrixEventTypeString]
|
||||
|
||||
Reference in New Issue
Block a user