mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 06:06:22 +00:00
Don't persist OMEMO {signed,}prekey cleaning on disconnect
We should not remove signed prekey and prekey from persistent storage when cleaning OMEMO store on disconnect.
This commit is contained in:
@@ -247,17 +247,7 @@ omemo_on_disconnect(void)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
signal_protocol_signed_pre_key_remove_key(omemo_ctx.store, omemo_ctx.signed_pre_key_id);
|
|
||||||
_g_hash_table_free(omemo_ctx.signed_pre_key_store);
|
_g_hash_table_free(omemo_ctx.signed_pre_key_store);
|
||||||
|
|
||||||
GHashTableIter iter;
|
|
||||||
gpointer id;
|
|
||||||
|
|
||||||
g_hash_table_iter_init(&iter, omemo_ctx.pre_key_store);
|
|
||||||
while (g_hash_table_iter_next(&iter, &id, NULL)) {
|
|
||||||
signal_protocol_pre_key_remove_key(omemo_ctx.store, GPOINTER_TO_INT(id));
|
|
||||||
}
|
|
||||||
|
|
||||||
_g_hash_table_free(omemo_ctx.pre_key_store);
|
_g_hash_table_free(omemo_ctx.pre_key_store);
|
||||||
|
|
||||||
g_string_free(omemo_ctx.identity_filename, TRUE);
|
g_string_free(omemo_ctx.identity_filename, TRUE);
|
||||||
|
|||||||
Reference in New Issue
Block a user