mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-23 18:12:44 +02:00
Merge branch 'develop' into ismail/5068_start_thread
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
#import <MatrixKit/MatrixKit.h>
|
||||
#import "MatrixKit.h"
|
||||
|
||||
extern NSString *const URLPreviewDidUpdateNotification;
|
||||
|
||||
@@ -31,7 +31,8 @@ typedef NS_ENUM(NSInteger, RoomBubbleCellDataTag)
|
||||
RoomBubbleCellDataTagKeyVerificationConclusion,
|
||||
RoomBubbleCellDataTagCall,
|
||||
RoomBubbleCellDataTagGroupCall,
|
||||
RoomBubbleCellDataTagRoomCreationIntro
|
||||
RoomBubbleCellDataTagRoomCreationIntro,
|
||||
RoomBubbleCellDataTagPoll
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -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