From 1f0df864453f4fd9c3d8ba2d90f3def26cbdf862 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 6 Sep 2017 00:38:35 +0200 Subject: fixup 8944029 (PGP support for MUCs) --- xmpp-vala/src/module/xep/0045_muc/flag.vala | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xmpp-vala/src/module/xep/0045_muc') 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 get_offline_members(string full_jid) { + public Gee.List get_offline_members(string muc_jid) { Gee.List ret = new ArrayList(); - foreach (string muc_jid in affiliations.keys) { - foreach (string jid in affiliations[muc_jid].keys) { + HashMap? 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); } } -- cgit v1.2.3-70-g09d2