diff options
author | Marvin W <git@larma.de> | 2023-01-31 14:43:17 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2023-01-31 15:14:55 +0100 |
commit | 921f28c84bbda56ec93df7dcde7c828eaabb0b58 (patch) | |
tree | 78c9276d47d6d939e242e072032b9196b5a8c6c6 /xmpp-vala/src/module/xep/0045_muc | |
parent | 9e11bef219880b5bdc5d299c31ec6249596a86ba (diff) | |
download | dino-921f28c84bbda56ec93df7dcde7c828eaabb0b58.tar.gz dino-921f28c84bbda56ec93df7dcde7c828eaabb0b58.zip |
Fix reaction display in private MUCs
Diffstat (limited to 'xmpp-vala/src/module/xep/0045_muc')
-rw-r--r-- | xmpp-vala/src/module/xep/0045_muc/flag.vala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/flag.vala b/xmpp-vala/src/module/xep/0045_muc/flag.vala index 976291b8..d0d2c359 100644 --- a/xmpp-vala/src/module/xep/0045_muc/flag.vala +++ b/xmpp-vala/src/module/xep/0045_muc/flag.vala @@ -26,6 +26,15 @@ public class Flag : XmppStreamFlag { public Jid? get_real_jid(Jid full_jid) { return occupant_real_jids[full_jid]; } + public Jid? get_occupant_jid(Jid real_jid, Jid room) { + foreach (Map.Entry<Jid, Jid> entry in occupant_real_jids) { + if (entry.value.equals_bare(real_jid) && entry.key.equals_bare(room)) { + return entry.key; + } + } + return null; + } + public Gee.List<Jid> get_offline_members(Jid muc_jid) { Gee.List<Jid> ret = new ArrayList<Jid>(Jid.equals_func); HashMap<Jid, Affiliation>? muc_affiliations = affiliations[muc_jid.bare_jid]; |