diff options
author | fiaxh <git@mx.ax.lt> | 2017-09-06 00:38:35 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-09-06 00:38:59 +0200 |
commit | 1f0df864453f4fd9c3d8ba2d90f3def26cbdf862 (patch) | |
tree | a7b4034dc94b6eb07089e2c5f8e8e3eb7d7efeef /xmpp-vala/src/module/xep | |
parent | 8944029128e3d0f9e32b61e00e880d92fceabb31 (diff) | |
download | dino-1f0df864453f4fd9c3d8ba2d90f3def26cbdf862.tar.gz dino-1f0df864453f4fd9c3d8ba2d90f3def26cbdf862.zip |
fixup 8944029 (PGP support for MUCs)
Diffstat (limited to 'xmpp-vala/src/module/xep')
-rw-r--r-- | xmpp-vala/src/module/xep/0045_muc/flag.vala | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xmpp-vala/src/module/xep/0045_muc/flag.vala b/xmpp-vala/src/module/xep/0045_muc/flag.vala index 0e1d0c10..da469a41 100644 --- a/xmpp-vala/src/module/xep/0045_muc/flag.vala +++ b/xmpp-vala/src/module/xep/0045_muc/flag.vala @@ -27,10 +27,11 @@ public class Flag : XmppStreamFlag { public string? get_real_jid(string full_jid) { return occupant_real_jids[full_jid]; } - public Gee.List<string> get_offline_members(string full_jid) { + public Gee.List<string> get_offline_members(string muc_jid) { Gee.List<string> ret = new ArrayList<string>(); - foreach (string muc_jid in affiliations.keys) { - foreach (string jid in affiliations[muc_jid].keys) { + HashMap<string, Affiliation>? muc_affiliations = affiliations[muc_jid]; + if (muc_affiliations != null) { + foreach (string jid in muc_affiliations.keys) { if (!jid.has_prefix(muc_jid)) ret.add(jid); } } |