Handle local events for voice broadcasts (#9561)

This commit is contained in:
Michael Weimann 2022-11-09 12:17:54 +01:00 committed by GitHub
parent 848adfdc10
commit 7fbdd8bb5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 51 additions and 8 deletions

View file

@ -129,12 +129,8 @@ export class VoiceBroadcastPlayback
}
private addChunkEvent = async (event: MatrixEvent): Promise<boolean> => {
const eventId = event.getId();
if (!eventId
|| eventId.startsWith("~!") // don't add local events
|| event.getContent()?.msgtype !== MsgType.Audio // don't add non-audio event
) {
if (event.getContent()?.msgtype !== MsgType.Audio) {
// skip non-audio event
return false;
}