diff options
author | fiaxh <git@mx.ax.lt> | 2017-03-03 19:22:45 +0100 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-03-03 19:22:45 +0100 |
commit | a9ae79878e5289d198af47fc4e9e2149450b2502 (patch) | |
tree | 765d87c0031a07aeb81c30f98862b54dc05b2dcb /vala-xmpp | |
parent | 56bc45ce4d07a7a9a415e9dc8ad2f7c3f3c9e48d (diff) | |
download | dino-a9ae79878e5289d198af47fc4e9e2149450b2502.tar.gz dino-a9ae79878e5289d198af47fc4e9e2149450b2502.zip |
Use Window instead of ApplicationWindow for main view
Diffstat (limited to 'vala-xmpp')
-rw-r--r-- | vala-xmpp/src/module/presence/flag.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vala-xmpp/src/module/presence/flag.vala b/vala-xmpp/src/module/presence/flag.vala index 3dc86a5c..a92c9405 100644 --- a/vala-xmpp/src/module/presence/flag.vala +++ b/vala-xmpp/src/module/presence/flag.vala @@ -7,14 +7,14 @@ namespace Xmpp.Presence { public class Flag : XmppStreamFlag { public const string ID = "presence"; - private HashMap<string, ArrayList<string>> resources = new HashMap<string, ArrayList<string>>(); + private HashMap<string, ConcurrentList<string>> resources = new HashMap<string, ConcurrentList<string>>(); private HashMap<string, Presence.Stanza> presences = new HashMap<string, Presence.Stanza>(); public Set<string> get_available_jids() { return resources.keys; } - public ArrayList<string>? get_resources(string bare_jid) { + public Gee.List<string>? get_resources(string bare_jid) { return resources[bare_jid]; } @@ -25,7 +25,7 @@ public class Flag : XmppStreamFlag { public void add_presence(Presence.Stanza presence) { string bare_jid = get_bare_jid(presence.from); if (!resources.has_key(bare_jid)) { - resources[bare_jid] = new ArrayList<string>(); + resources[bare_jid] = new ConcurrentList<string>(); } if (resources[bare_jid].contains(presence.from)) { resources[bare_jid].remove(presence.from); |