[calls] sip: provider: Update credentials on disk when removing origin
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] sip: provider: Update credentials on disk when removing origin
- Date: Tue, 20 Jul 2021 10:33:29 +0000 (UTC)
commit a8516f6e7b247713c543bce49b7e014c49c8424c
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date: Fri Jul 9 11:31:02 2021 +0200
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 6012de45..3a523f26 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]