mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
MESSENGER-5806 bugfix location view shown after deletion
This commit is contained in:
@@ -721,6 +721,31 @@
|
||||
return eventsArray;
|
||||
}
|
||||
|
||||
// bwi: #5806 bugfix: showing live location view when deleting location event
|
||||
- (BOOL)isLocationType
|
||||
{
|
||||
// Determine if the event will return at least one location message type for the events in this cell.
|
||||
BOOL isLocationMessageType = NO;
|
||||
|
||||
NSMutableArray* eventsArray;
|
||||
|
||||
@synchronized(bubbleComponents)
|
||||
{
|
||||
eventsArray = [NSMutableArray arrayWithCapacity:bubbleComponents.count];
|
||||
for (MXKRoomBubbleComponent *roomBubbleComponent in bubbleComponents)
|
||||
{
|
||||
if (roomBubbleComponent.event) {
|
||||
if (roomBubbleComponent.event.isTimlineLcationEvent)
|
||||
{
|
||||
isLocationMessageType = YES;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return isLocationMessageType;
|
||||
}
|
||||
|
||||
- (NSDate*)date
|
||||
{
|
||||
MXKRoomBubbleComponent *firstDisplayedComponent = [self getFirstBubbleComponentWithDisplay];
|
||||
|
||||
@@ -127,6 +127,12 @@
|
||||
*/
|
||||
@property (nonatomic, readonly) NSArray<MXEvent*> *events;
|
||||
|
||||
/**
|
||||
Is data from type location
|
||||
// bwi: #5806 bugfix: showing live location view when deleting location event
|
||||
*/
|
||||
@property (nonatomic, readonly) BOOL isLocationType;
|
||||
|
||||
/**
|
||||
The bubble attachment (if any).
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user