diff options
author | fiaxh <git@mx.ax.lt> | 2017-11-26 19:28:44 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-12-31 22:48:14 +0100 |
commit | 119e7cce4ffb2774fa77bbfcef5dda80a5483f3f (patch) | |
tree | 2eed168463c5ef394e8c765a26322ab7d7ec3a06 /libdino/src | |
parent | 8cbc4e7f892e08cc18552e6a41fc752c22e082ba (diff) | |
download | dino-119e7cce4ffb2774fa77bbfcef5dda80a5483f3f.tar.gz dino-119e7cce4ffb2774fa77bbfcef5dda80a5483f3f.zip |
Place time+encryption+read directly right of name
Diffstat (limited to 'libdino/src')
-rw-r--r-- | libdino/src/service/presence_manager.vala | 7 |
1 files changed, 3 insertions, 4 deletions
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<string> resources = flag.get_resources(jid.bare_jid.to_string()); + Gee.List<string>? resources = flag.get_resources(jid.bare_jid.to_string()); if (resources == null) { return null; } ArrayList<Jid> ret = new ArrayList<Jid>(Jid.equals_func); - resources.foreach((resource) => { + foreach (string resource in resources) { ret.add(new Jid(resource)); - return true; - }); + } return ret; } return null; |