Create a new list to return in Presence.Flag.get_resources

This commit is contained in:
fiaxh 2022-01-04 20:06:43 +01:00
parent 33104a778d
commit c70201080b

View file

@ -13,6 +13,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>();
ret.add_all(resources[jid]);
return resources[jid];
}