From 4826da3aa6ac36208b35e0988b14ea7f767f7549 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Thu, 14 Mar 2019 06:00:25 +0140 Subject: Don't rely on account name being jid --- src/omemo/omemo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/omemo') 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) { -- cgit 1.4.1-2-gfad0