Create a new list to return in Presence.Flag.get_resources
This commit is contained in:
parent
33104a778d
commit
c70201080b
|
@ -13,6 +13,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;
|
||||||
|
ArrayList<Jid> ret = new ArrayList<Jid>();
|
||||||
|
ret.add_all(resources[jid]);
|
||||||
return resources[jid];
|
return resources[jid];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue