From 9cfc5a1827c58b09d5018a46683ed99093bb8178 Mon Sep 17 00:00:00 2001 From: wkg <1515379+wkg@users.noreply.github.com> Date: Sun, 12 Dec 2021 14:56:58 +0300 Subject: fix for "retracted" call from remote side. (#1160) --- libdino/src/service/calls.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libdino/src') diff --git a/libdino/src/service/calls.vala b/libdino/src/service/calls.vala index 365c15d9..6b69049e 100644 --- a/libdino/src/service/calls.vala +++ b/libdino/src/service/calls.vala @@ -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; -- cgit v1.2.3-70-g09d2