1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-30 15:49:31 +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:
Evangelos Ribeiro Tzaras 2021-07-09 11:31:02 +02:00 committed by Evangelos Ribeiro Tzaras
parent 40cea6760b
commit a8516f6e7b

View file

@ -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;