diff options
author | fiaxh <git@lightrise.org> | 2022-02-07 22:09:51 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2022-02-07 22:17:21 +0100 |
commit | 3088879a7b35fede494ca3a8b961a0142f36593a (patch) | |
tree | 371883a86b74bc7af3270e8c9d41b3fbda2191f3 /libdino/src/service/muc_manager.vala | |
parent | ee085e3e0dfd886090ad1e9e958847403c60e691 (diff) | |
download | dino-3088879a7b35fede494ca3a8b961a0142f36593a.tar.gz dino-3088879a7b35fede494ca3a8b961a0142f36593a.zip |
Various call fixes
- Use groupchat message type for invites in MUCs
- Use call id (from propose) instead of message id for Call Invite Messages
- Fix call window controlls appearing when hovering controls
Diffstat (limited to 'libdino/src/service/muc_manager.vala')
-rw-r--r-- | libdino/src/service/muc_manager.vala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdino/src/service/muc_manager.vala b/libdino/src/service/muc_manager.vala index 5d0b05b9..5cfe5528 100644 --- a/libdino/src/service/muc_manager.vala +++ b/libdino/src/service/muc_manager.vala @@ -347,6 +347,12 @@ public class MucManager : StreamInteractionModule, Object { return null; } + public bool is_own_muc_jid(Jid full_jid, Account account) { + if (!is_groupchat(full_jid.bare_jid, account)) return false; + Jid? own_jid = get_own_jid(full_jid, account); + return own_jid != null && own_jid.equals(full_jid); + } + private Xep.Muc.Flag? get_muc_flag(Account account) { XmppStream? stream = stream_interactor.get_stream(account); if (stream != null) { |