mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 21:46:21 +00:00
Add and use connection_get_barejid()
Instead of connection_get_fulljid() and then creating a Jid from it.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user