Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/candy-chat/candy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Langfeld <ben@langfeld.me>2015-03-05 17:52:27 +0300
committerBen Langfeld <ben@langfeld.me>2015-03-05 17:52:27 +0300
commit0162423ee1d8c52db94139b439ef9e1c7c0fcfa9 (patch)
tree4049262689a887d11581eeb135e53a7d4b1894d0
parent1e3d463e51b2853335279016648b8e983e3d3b84 (diff)
Room members should be explicitly set online on any presence
If we've already populated the roster from the room members list, then the user coming online will look like a role/affiliation change.
-rw-r--r--src/core/event.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/event.js b/src/core/event.js
index 1470fb9..d3e8e60 100644
--- a/src/core/event.js
+++ b/src/core/event.js
@@ -584,6 +584,8 @@ Candy.Core.Event = (function(self, Strophe, $) {
user.setRole(role);
user.setAffiliation(affiliation);
+ user.setStatus("available");
+
// FIXME: currently role/affilation changes are handled with this action
action = 'join';
} else {