mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
OMEMO Device List only for non anonymous MUCs
Profanity request the OMEMO Device List for all members, also if the MUC is anonymouse. If the user is Admin / Owner, the device list will be requtest. Issue #1315
This commit is contained in:
parent
a1d37dda18
commit
6268f5f0d7
@ -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
|
||||
Jid *our_jid = jid_create(connection_get_fulljid());
|
||||
if (strcmp(jid, our_jid->barejid) != 0) {
|
||||
omemo_start_session(jid);
|
||||
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);
|
||||
}
|
||||
jid_destroy(our_jid);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user