Actually return the new list in Presence.Flag.get_resources; fixup c702010

This commit is contained in:
fiaxh 2022-01-07 22:28:02 +01:00
parent ac2af04740
commit bafec6e202

View file

@ -14,9 +14,9 @@ public class Flag : XmppStreamFlag {
public Gee.List<Jid>? get_resources(Jid jid) { public Gee.List<Jid>? get_resources(Jid jid) {
if (!resources.has_key(jid)) return null; 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]); ret.add_all(resources[jid]);
return resources[jid]; return ret;
} }
public Presence.Stanza? get_presence(Jid full_jid) { public Presence.Stanza? get_presence(Jid full_jid) {