about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/omemo/omemo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c
index b8307352..6f22a50a 100644
--- a/src/omemo/omemo.c
+++ b/src/omemo/omemo.c
@@ -434,7 +434,7 @@ omemo_start_device_session(const char *const jid, uint32_t device_id,
 
     gboolean trusted = is_trusted_identity(&address, (uint8_t *)identity_key_raw, identity_key_len, &omemo_ctx.identity_key_store);
 
-    Jid *ownjid = jid_create(session_get_account_name());
+    Jid *ownjid = jid_create(connection_get_fulljid());
     if (g_strcmp0(jid, ownjid->barejid) == 0) {
         char *fingerprint = omemo_fingerprint(identity_key, TRUE);
 
@@ -515,7 +515,7 @@ gboolean
 omemo_on_message_send(ProfChatWin *chatwin, const char *const message, gboolean request_receipt)
 {
     int res;
-    Jid *jid = jid_create(session_get_account_name());
+    Jid *jid = jid_create(connection_get_fulljid());
 
     GList *recipient_device_id = g_hash_table_lookup(omemo_ctx.device_list, chatwin->barejid);
     if (!recipient_device_id) {