about summary refs log tree commit diff stats
path: root/src/omemo
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-04-12 19:10:48 +0320
committerPaul Fariello <paul@fariello.eu>2019-04-14 22:03:16 +0200
commit9c0a3954086491dbc70a0cf54c9ff90f7bc3094f (patch)
tree997c28500ac7d6d09b5bf003ed63d6ca9ad7784f /src/omemo
parent94a39b2e9b3fc445604ba3d15db340131316eab1 (diff)
downloadprofani-tty-9c0a3954086491dbc70a0cf54c9ff90f7bc3094f.tar.gz
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.
Diffstat (limited to 'src/omemo')
-rw-r--r--src/omemo/omemo.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index c15517a2..b85029ee 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -247,17 +247,7 @@ omemo_on_disconnect(void)
         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);
-
-    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_string_free(omemo_ctx.identity_filename, TRUE);