[Voice Broadcast] Add chunk after decrypting the event. (#7181)

This commit is contained in:
Yoan Pintas
2022-12-19 19:32:01 +01:00
committed by GitHub
parent 79e9f8ee40
commit 887a703360
2 changed files with 61 additions and 33 deletions
@@ -295,6 +295,14 @@ NSString *const URLPreviewDidUpdateNotification = @"URLPreviewDidUpdateNotificat
{
[self updateBeaconInfoSummaryWithId:eventId andEvent:event];
}
// Handle here the case where an audio chunk of a voice broadcast have been decrypted with delay
// We take the opportunity of this update to disable the display of this chunk in the room timeline
if (event.eventType == MXEventTypeRoomMessage && event.content[VoiceBroadcastSettings.voiceBroadcastContentKeyChunkType]) {
self.tag = RoomBubbleCellDataTagVoiceBroadcastNoDisplay;
self.collapsable = NO;
self.collapsed = NO;
}
return retVal;
}