fix for "retracted" call from remote side. (#1160)

This commit is contained in:
wkg 2021-12-12 14:56:58 +03:00 committed by GitHub
parent fa1ba2f83d
commit 9cfc5a1827
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -677,8 +677,8 @@ namespace Dino {
if (!call_by_sid[account].has_key(sid)) return;
Call call = call_by_sid[account][sid];
bool outgoing_retract = call.direction == Call.DIRECTION_OUTGOING && from.equals_bare(call.counterpart);
bool incoming_retract = call.direction == Call.DIRECTION_INCOMING && from.equals_bare(account.bare_jid);
bool outgoing_retract = call.direction == Call.DIRECTION_OUTGOING && from.equals_bare(account.bare_jid);
bool incoming_retract = call.direction == Call.DIRECTION_INCOMING && from.equals_bare(call.counterpart);
if (!(outgoing_retract || incoming_retract)) return;
call.state = Call.State.MISSED;