1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Merge pull request #1318 from DebXWoody/OMEMO-MUC-Device

OMEMO Device List only for non anonymous MUCs
This commit is contained in:
Michael Vetter 2020-04-18 21:44:20 +02:00 committed by GitHub
commit a39e44ac1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -885,11 +885,13 @@ muc_members_add(const char *const room, const char *const jid)
if (chat_room) {
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) {
omemo_start_session(jid);
}
jid_destroy(our_jid);
}
#endif
}
}