mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-30 15:26:21 +00:00
Merge pull request #1318 from DebXWoody/OMEMO-MUC-Device
OMEMO Device List only for non anonymous MUCs
This commit is contained in:
@@ -885,11 +885,13 @@ muc_members_add(const char *const room, const char *const jid)
|
|||||||
if (chat_room) {
|
if (chat_room) {
|
||||||
if (g_hash_table_insert(chat_room->members, strdup(jid), NULL)) {
|
if (g_hash_table_insert(chat_room->members, strdup(jid), NULL)) {
|
||||||
#ifdef HAVE_OMEMO
|
#ifdef HAVE_OMEMO
|
||||||
Jid *our_jid = jid_create(connection_get_fulljid());
|
if(chat_room->anonymity_type == MUC_ANONYMITY_TYPE_NONANONYMOUS ) {
|
||||||
if (strcmp(jid, our_jid->barejid) != 0) {
|
Jid *our_jid = jid_create(connection_get_fulljid());
|
||||||
omemo_start_session(jid);
|
if (strcmp(jid, our_jid->barejid) != 0) {
|
||||||
|
omemo_start_session(jid);
|
||||||
|
}
|
||||||
|
jid_destroy(our_jid);
|
||||||
}
|
}
|
||||||
jid_destroy(our_jid);
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user