forked from cory/tildefriends
Backlog of miscellaneous fixes.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3234 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -86,6 +86,18 @@ exports.ChatService = class {
|
||||
});
|
||||
}
|
||||
|
||||
notifyParticipantList(conversation, participants) {
|
||||
let current = this._getConversation(conversation).participants;
|
||||
for (let i in current) {
|
||||
if (!participants[i]) {
|
||||
this.notifyPresenceChanged(conversation, i, "unavailable");
|
||||
}
|
||||
}
|
||||
for (let i in participants) {
|
||||
this.notifyPresenceChanged(conversation, i, participants[i]);
|
||||
}
|
||||
}
|
||||
|
||||
notifyStateChanged(state) {
|
||||
this._state = state;
|
||||
this._invokeCallback({action: state});
|
||||
|
Reference in New Issue
Block a user