Browse Source

Fixes hard-to-read indentation.

master
Lyubomir Marinov 9 years ago
parent
commit
3079fbca34
1 changed files with 3 additions and 6 deletions
  1. 3
    6
      modules/xmpp/ChatRoom.js

+ 3
- 6
modules/xmpp/ChatRoom.js View File

@@ -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) {

Loading…
Cancel
Save