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:

committed by
Evangelos Ribeiro Tzaras

parent
40cea6760b
commit
a8516f6e7b
@@ -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;
|
||||
|
Reference in New Issue
Block a user