aboutsummaryrefslogtreecommitdiff
path: root/vala-xmpp/src/module/presence/flag.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-03 19:22:45 +0100
committerfiaxh <git@mx.ax.lt>2017-03-03 19:22:45 +0100
commita9ae79878e5289d198af47fc4e9e2149450b2502 (patch)
tree765d87c0031a07aeb81c30f98862b54dc05b2dcb /vala-xmpp/src/module/presence/flag.vala
parent56bc45ce4d07a7a9a415e9dc8ad2f7c3f3c9e48d (diff)
downloaddino-a9ae79878e5289d198af47fc4e9e2149450b2502.tar.gz
dino-a9ae79878e5289d198af47fc4e9e2149450b2502.zip
Use Window instead of ApplicationWindow for main view
Diffstat (limited to 'vala-xmpp/src/module/presence/flag.vala')
-rw-r--r--vala-xmpp/src/module/presence/flag.vala6
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);