VoIP: ignore invites you send
This commit is contained in:
parent
48354721a2
commit
7d63135cc2
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue