[calls] sip: origin: Notify on state change



commit 0605582fc7f5cc6292343770dc138435d2a11a13
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Thu May 19 20:02:23 2022 +0200

    sip: origin: Notify on state change
    
    The account state has G_EXPLICIT_NOTIFY but we did never notified.

 plugins/sip/calls-sip-origin.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index 7cb94443..b818fa5d 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -151,6 +151,8 @@ change_state (CallsSipOrigin         *self,
   old_state = self->state;
   self->state = new_state;
 
+  g_object_notify_by_pspec (G_OBJECT (self), props[PROP_ACC_STATE]);
+
   g_signal_emit_by_name (self, "account-state-changed", old_state, new_state, reason);
   calls_account_emit_message_for_state_change (CALLS_ACCOUNT (self), new_state, reason);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]