mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 16:42:44 +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];
|
||||
|
||||
Reference in New Issue
Block a user