Remove the voice broadcast chunks from the attachments list

This commit is contained in:
Philippe Loriaux
2022-12-02 11:50:20 +01:00
parent 65d56edaf1
commit d6d5cabc0d
4 changed files with 8 additions and 0 deletions
@@ -1373,6 +1373,11 @@ typedef NS_ENUM (NSUInteger, MXKRoomDataSourceError) {
// ignore the event
return NO;
}
// Ignore voice message related to an actual voice broadcast.
if (event.content[VoiceBroadcastSettings.voiceBroadcastContentKeyChunkType] != nil) {
return NO;
}
}
// Check for undecryptable messages that were sent while the user was not in the room and hide them