MESSENGER-5806 bugfix location view shown after deletion

This commit is contained in:
JanNiklas Grabowski
2024-03-27 16:31:11 +01:00
parent e18e64d1c8
commit 571a1a2d00
5 changed files with 51 additions and 2 deletions
@@ -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];