about summary refs log tree commit diff stats
path: root/src/omemo/omemo.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-05-25 13:04:19 +0200
committerMichael Vetter <jubalh@iodoru.org>2020-05-25 13:04:19 +0200
commitde8975c008aa4016e7bc1b817a62d90f9f45cefa (patch)
tree20d979e8f67895d39ca8fee74e5b49999839ac2c /src/omemo/omemo.c
parent4b5711fad5585149de65319a8f27cb7ba3a439a5 (diff)
downloadprofani-tty-de8975c008aa4016e7bc1b817a62d90f9f45cefa.tar.gz
Add and use connection_get_barejid()
Instead of connection_get_fulljid() and then creating a Jid from it.
Diffstat (limited to 'src/omemo/omemo.c')
-rw-r--r--src/omemo/omemo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index b570b3e0..0718a287 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -373,16 +373,16 @@ omemo_publish_crypto_materials(void)
         return;
     }
 
-    Jid *jid = jid_create(connection_get_fulljid());
+    char *barejid = connection_get_barejid();
 
     /* Ensure we get our current device list, and it gets updated with our
      * device_id */
-    g_hash_table_insert(omemo_ctx.device_list_handler, strdup(jid->barejid), _handle_own_device_list);
-    omemo_devicelist_request(jid->barejid);
+    g_hash_table_insert(omemo_ctx.device_list_handler, strdup(barejid), _handle_own_device_list);
+    omemo_devicelist_request(barejid);
 
     omemo_bundle_publish(true);
 
-    jid_destroy(jid);
+    free(barejid);
 }
 
 void