From 119e7cce4ffb2774fa77bbfcef5dda80a5483f3f Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 26 Nov 2017 19:28:44 +0100 Subject: Place time+encryption+read directly right of name --- libdino/src/service/presence_manager.vala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libdino/src/service') diff --git a/libdino/src/service/presence_manager.vala b/libdino/src/service/presence_manager.vala index 7e74f125..e3ece45f 100644 --- a/libdino/src/service/presence_manager.vala +++ b/libdino/src/service/presence_manager.vala @@ -46,15 +46,14 @@ public class PresenceManager : StreamInteractionModule, Object { if (stream != null) { Xmpp.Presence.Flag flag = stream.get_flag(Presence.Flag.IDENTITY); if (flag == null) return null; - Gee.List resources = flag.get_resources(jid.bare_jid.to_string()); + Gee.List? resources = flag.get_resources(jid.bare_jid.to_string()); if (resources == null) { return null; } ArrayList ret = new ArrayList(Jid.equals_func); - resources.foreach((resource) => { + foreach (string resource in resources) { ret.add(new Jid(resource)); - return true; - }); + } return ret; } return null; -- cgit v1.2.3-70-g09d2