diff options
author | Paul Fariello <paul@fariello.eu> | 2019-03-14 06:00:25 +0140 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2019-04-10 17:12:31 +0200 |
commit | 4826da3aa6ac36208b35e0988b14ea7f767f7549 (patch) | |
tree | 963ede56a434fbb619199fb6635b24b94c0044e8 | |
parent | 8952684472eac14967134279bcc39cbff7f55a7b (diff) | |
download | profani-tty-4826da3aa6ac36208b35e0988b14ea7f767f7549.tar.gz |
Don't rely on account name being jid
-rw-r--r-- | src/omemo/omemo.c | 4 |
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) { |