[calls] sip-origin: Notify on account property updates



commit 47d252eb8b35c89e354a4f739367ff53b8e19652
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Sat May 21 18:26:11 2022 +0200

    sip-origin: Notify on account property updates
    
    The UI does not have a chance to react otherwise.

 plugins/sip/calls-sip-origin.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index c43f3635..347841dd 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -883,6 +883,8 @@ setup_nua (CallsSipOrigin *self)
   self->address = g_strconcat (self->user, "@", self->host, NULL);
   from_str = g_strconcat (self->protocol_prefix, ":", self->address, NULL);
 
+  g_object_notify_by_pspec(G_OBJECT (self), props[PROP_ACC_ADDRESS]);
+
   use_sips = check_sips (from_str);
   use_ipv6 = check_ipv6 (self->host);
 
@@ -1638,5 +1640,7 @@ calls_sip_origin_set_credentials (CallsSipOrigin *self,
 
   self->can_tel = can_tel;
 
+  update_name (self);
+
   recreate_sip (self);
 }


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