Fix hidden live location timeline tiles after text messages

This prevents `MXEventTypeBeaconInfo` events from being added into other
bubble cell data objects.

Previously, when starting a live location share right after
sending a text message, the beacon info event would get appended into the text
message's bubble cell data which prevented it from rendering.

Similarly, when restarting the app in such a situation the events would be getting
reprocessed _in backwards order_ which meant the final beacon info landed in
its own bubble cell data (causing it to render) but a beacon info right before the
text message would now get combined with the text message causing it to go hidden.
This commit is contained in:
Johannes Marbach
2023-01-03 13:57:23 +01:00
parent 2f76be2594
commit 7ce4667977
@@ -1193,6 +1193,9 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
case MXEventTypePollStart:
shouldAddEvent = NO;
break;
case MXEventTypeBeaconInfo:
shouldAddEvent = NO;
break;
case MXEventTypeCustom:
{
if ([event.type isEqualToString:kWidgetMatrixEventTypeString]