mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
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) {
|
||||
val content = event.getClearContent().toModel<CallInviteContent>() ?: return
|
||||
if (content.partyId == deviceId) {
|
||||
// Ignore remote echo
|
||||
if (event.senderId == userId) {
|
||||
// ignore invites you send
|
||||
return
|
||||
}
|
||||
val content = event.getClearContent().toModel<CallInviteContent>() ?: return
|
||||
val incomingCall = MxCallImpl(
|
||||
callId = content.callId ?: return,
|
||||
isOutgoing = false,
|
||||
|
Loading…
Reference in New Issue
Block a user