mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-06 11:35:32 +00:00
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.
This commit is contained in:
parent
40cea6760b
commit
a8516f6e7b
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue