aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/presence/flag.vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/presence/flag.vala')
-rw-r--r--xmpp-vala/src/module/presence/flag.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/presence/flag.vala b/xmpp-vala/src/module/presence/flag.vala
index cc0a1f6b..34f296e8 100644
--- a/xmpp-vala/src/module/presence/flag.vala
+++ b/xmpp-vala/src/module/presence/flag.vala
@@ -14,9 +14,9 @@ public class Flag : XmppStreamFlag {
public Gee.List<Jid>? get_resources(Jid jid) {
if (!resources.has_key(jid)) return null;
- ArrayList<Jid> ret = new ArrayList<Jid>();
+ ArrayList<Jid> ret = new ArrayList<Jid>(Jid.equals_func);
ret.add_all(resources[jid]);
- return resources[jid];
+ return ret;
}
public Presence.Stanza? get_presence(Jid full_jid) {