mirror of
https://github.com/TakeV-Lambda/dino.git
synced 2024-11-22 23:14:27 +00:00
fix for "retracted" call from remote side. (#1160)
This commit is contained in:
parent
fa1ba2f83d
commit
9cfc5a1827
1 changed files with 2 additions and 2 deletions
|
@ -677,8 +677,8 @@ namespace Dino {
|
||||||
if (!call_by_sid[account].has_key(sid)) return;
|
if (!call_by_sid[account].has_key(sid)) return;
|
||||||
Call call = call_by_sid[account][sid];
|
Call call = call_by_sid[account][sid];
|
||||||
|
|
||||||
bool outgoing_retract = call.direction == Call.DIRECTION_OUTGOING && from.equals_bare(call.counterpart);
|
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(account.bare_jid);
|
bool incoming_retract = call.direction == Call.DIRECTION_INCOMING && from.equals_bare(call.counterpart);
|
||||||
if (!(outgoing_retract || incoming_retract)) return;
|
if (!(outgoing_retract || incoming_retract)) return;
|
||||||
|
|
||||||
call.state = Call.State.MISSED;
|
call.state = Call.State.MISSED;
|
||||||
|
|
Loading…
Reference in a new issue