From a8516f6e7b247713c543bce49b7e014c49c8424c Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Fri, 9 Jul 2021 11:31:02 +0200 Subject: [PATCH] sip: provider: Update credentials on disk when removing origin Otherwise the key file will be unaltered and loads the same account on the next startup. One more step closer to fixing #251. --- plugins/sip/calls-sip-provider.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/sip/calls-sip-provider.c b/plugins/sip/calls-sip-provider.c index 6012de4..3a523f2 100644 --- a/plugins/sip/calls-sip-provider.c +++ b/plugins/sip/calls-sip-provider.c @@ -644,6 +644,11 @@ calls_sip_provider_remove_origin (CallsSipProvider *self, if (g_list_store_find (self->origins, origin, &position)) { g_list_store_remove (self->origins, position); + + if (!self->use_memory_backend) { + /* TODO need to delete credentials from the keyring as well */ + save_to_disk (self); + } return TRUE; } return FALSE;