about summary refs log tree commit diff stats
path: root/src/xmpp/muc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmpp/muc.c')
-rw-r--r--src/xmpp/muc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xmpp/muc.c b/src/xmpp/muc.c
index 172bdb80..85f90ae6 100644
--- a/src/xmpp/muc.c
+++ b/src/xmpp/muc.c
@@ -886,11 +886,11 @@ muc_members_add(const char *const room, const char *const jid)
         if (g_hash_table_insert(chat_room->members, strdup(jid), NULL)) {
 #ifdef HAVE_OMEMO
             if(chat_room->anonymity_type == MUC_ANONYMITY_TYPE_NONANONYMOUS ) {
-                Jid *our_jid = jid_create(connection_get_fulljid());
-                if (strcmp(jid, our_jid->barejid) != 0) {
+                char *our_barejid = connection_get_barejid();
+                if (strcmp(jid, our_barejid) != 0) {
                     omemo_start_session(jid);
                 }
-                jid_destroy(our_jid);
+                free(our_barejid);
             }
 #endif
         }