Handle local events for voice broadcasts (#9561)
This commit is contained in:
parent
848adfdc10
commit
7fbdd8bb5d
4 changed files with 51 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue