diff options
author | fiaxh <git@lightrise.org> | 2022-02-12 14:07:19 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-02-12 14:22:29 +0100 |
commit | be751a5dda6e4b4612276d278f59f9f96ed0298c (patch) | |
tree | 3f0aeca430893c4ebf1fe51ab1102537a5681ca2 /xmpp-vala/src/module/xep/0045_muc | |
parent | 6532c2b160c66540091d667c4af116ec4d71ff43 (diff) | |
download | dino-be751a5dda6e4b4612276d278f59f9f96ed0298c.tar.gz dino-be751a5dda6e4b4612276d278f59f9f96ed0298c.zip |
Various call fixes
- If peer invited us claiming audio-only and then wants to have a video content, do a content-modify and accept audio-only
- Check contents for video (and modify) and whether call is truly accepted in PeerState.accept() directly
- If a message contains both JMI and CIM, only use JMI
- Fix outgoing CIM (disabled)
- Use opacity instead of visiblity for file_menu, small fixes
- Add back owner/admin/member queries when joining MUC (regression from 33104a7)
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, 6 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala index 9969f507..56d50210 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -345,6 +345,12 @@ 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) { + + // TODO only query that if we actually have the rights to + 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); |