VoIP: ignore invites you send

This commit is contained in:
ganfra 2020-11-17 19:30:52 +01:00
parent 48354721a2
commit 7d63135cc2
1 changed files with 3 additions and 3 deletions

View File

@ -228,11 +228,11 @@ internal class DefaultCallSignalingService @Inject constructor(
} }
private fun handleCallInviteEvent(event: Event) { private fun handleCallInviteEvent(event: Event) {
val content = event.getClearContent().toModel<CallInviteContent>() ?: return if (event.senderId == userId) {
if (content.partyId == deviceId) { // ignore invites you send
// Ignore remote echo
return return
} }
val content = event.getClearContent().toModel<CallInviteContent>() ?: return
val incomingCall = MxCallImpl( val incomingCall = MxCallImpl(
callId = content.callId ?: return, callId = content.callId ?: return,
isOutgoing = false, isOutgoing = false,