diff options
author | fiaxh <git@lightrise.org> | 2022-01-08 21:35:58 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-01-08 21:35:58 +0100 |
commit | 975b37c498f2611bc7f13017d4491961426a8a7f (patch) | |
tree | 8cbc42c8fcfc2873166d9f3b4d5cadb99fcb5480 /xmpp-vala/src/module/xep/0045_muc | |
parent | e40de726312638b1410da6e4b21d6a8ce818eddc (diff) | |
download | dino-975b37c498f2611bc7f13017d4491961426a8a7f.tar.gz dino-975b37c498f2611bc7f13017d4491961426a8a7f.zip |
Stop making superfluous requests when joining a MUC
Don't request legacy bookmarks on every muc join (when again setting autojoin) fixes #260
Don't query member/admin/owner affiliations on every MUC join
Diffstat (limited to 'xmpp-vala/src/module/xep/0045_muc')
-rw-r--r-- | xmpp-vala/src/module/xep/0045_muc/module.vala | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala index c9445f7e..e8711742 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -342,11 +342,6 @@ public class Module : XmppStreamModule { if (status_codes.contains(StatusCode.SELF_PRESENCE)) { Jid bare_jid = presence.from.bare_jid; if (flag.get_enter_id(bare_jid) != null) { - - query_affiliation.begin(stream, bare_jid, "member"); - query_affiliation.begin(stream, bare_jid, "admin"); - query_affiliation.begin(stream, bare_jid, "owner"); - flag.finish_muc_enter(bare_jid); var join_result = new JoinResult() { nick=presence.from.resourcepart, newly_created=status_codes.contains(StatusCode.NEW_ROOM_CREATED) }; flag.enter_futures[bare_jid].set_value(join_result); @@ -458,7 +453,6 @@ public class Module : XmppStreamModule { .put_attribute("affiliation", affiliation)) ) { to=jid }; - Iq.Stanza iq_result = yield stream.get_module(Iq.Module.IDENTITY).send_iq_async(stream, iq); if (iq_result.is_error()) return null; |