aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-01-07 22:28:02 +0100
committerfiaxh <git@lightrise.org>2022-01-07 22:29:51 +0100
commitbafec6e2022af82da7772b5286f54e789bef0cb8 (patch)
treeaf415a23552046312a68c0c9aad36fbff7e3d19a /xmpp-vala
parentac2af047409c3cd9ecfc3c955da5975e79565961 (diff)
downloaddino-bafec6e2022af82da7772b5286f54e789bef0cb8.tar.gz
dino-bafec6e2022af82da7772b5286f54e789bef0cb8.zip
Actually return the new list in Presence.Flag.get_resources; fixup c702010
Diffstat (limited to 'xmpp-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) {