|
|
@@ -247,11 +247,9 @@ ChatRoom.prototype.onPresence = function (pres) {
|
|
247
|
247
|
}
|
|
248
|
248
|
|
|
249
|
249
|
if (from == this.myroomjid) {
|
|
250
|
|
- if (member.affiliation == 'owner'
|
|
251
|
|
- && this.role !== member.role) {
|
|
252
|
|
- this.role = member.role;
|
|
253
|
|
- this.eventEmitter.emit(
|
|
254
|
|
- XMPPEvents.LOCAL_ROLE_CHANGED, this.role);
|
|
|
250
|
+ if (member.affiliation == 'owner' && this.role !== member.role) {
|
|
|
251
|
+ this.role = member.role;
|
|
|
252
|
+ this.eventEmitter.emit(XMPPEvents.LOCAL_ROLE_CHANGED, this.role);
|
|
255
|
253
|
}
|
|
256
|
254
|
if (!this.joined) {
|
|
257
|
255
|
this.joined = true;
|
|
|
@@ -342,7 +340,6 @@ ChatRoom.prototype.onPresence = function (pres) {
|
|
342
|
340
|
if(this.recording)
|
|
343
|
341
|
this.recording.handleJibriPresence(jibri);
|
|
344
|
342
|
}
|
|
345
|
|
-
|
|
346
|
343
|
};
|
|
347
|
344
|
|
|
348
|
345
|
ChatRoom.prototype.processNode = function (node, from) {
|