From bafec6e2022af82da7772b5286f54e789bef0cb8 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 7 Jan 2022 22:28:02 +0100 Subject: Actually return the new list in Presence.Flag.get_resources; fixup c702010 --- xmpp-vala/src/module/presence/flag.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmpp-vala/src/module/presence') 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? get_resources(Jid jid) { if (!resources.has_key(jid)) return null; - ArrayList ret = new ArrayList(); + ArrayList ret = new ArrayList(Jid.equals_func); ret.add_all(resources[jid]); - return resources[jid]; + return ret; } public Presence.Stanza? get_presence(Jid full_jid) { -- cgit v1.2.3-70-g09d2