|
|
@@ -75,7 +75,7 @@ function ChatRoom(connection, jid, password, XMPP, options, settings) {
|
|
75
|
75
|
this.joined = false;
|
|
76
|
76
|
this.role = null;
|
|
77
|
77
|
this.focusMucJid = null;
|
|
78
|
|
- this.bridgeIsDown = false;
|
|
|
78
|
+ this.noBridgeAvailable = false;
|
|
79
|
79
|
this.options = options || {};
|
|
80
|
80
|
this.moderator = new Moderator(this.roomjid, this.xmpp, this.eventEmitter,
|
|
81
|
81
|
settings, {connection: this.xmpp.options, conference: this.options});
|
|
|
@@ -366,9 +366,9 @@ ChatRoom.prototype.onPresence = function (pres) {
|
|
366
|
366
|
}
|
|
367
|
367
|
}
|
|
368
|
368
|
break;
|
|
369
|
|
- case "bridgeIsDown":
|
|
370
|
|
- if (member.isFocus && !this.bridgeIsDown) {
|
|
371
|
|
- this.bridgeIsDown = true;
|
|
|
369
|
+ case "bridgeNotAvailable":
|
|
|
370
|
+ if (member.isFocus && !this.noBridgeAvailable) {
|
|
|
371
|
+ this.noBridgeAvailable = true;
|
|
372
|
372
|
this.eventEmitter.emit(XMPPEvents.BRIDGE_DOWN);
|
|
373
|
373
|
}
|
|
374
|
374
|
break;
|
|
|
@@ -669,7 +669,9 @@ ChatRoom.prototype.removePresenceListener = function (name) {
|
|
669
|
669
|
* Checks if the user identified by given <tt>mucJid</tt> is the conference
|
|
670
|
670
|
* focus.
|
|
671
|
671
|
* @param mucJid the full MUC address of the user to be checked.
|
|
672
|
|
- * @returns {boolean} <tt>true</tt> if MUC user is the conference focus.
|
|
|
672
|
+ * @returns {boolean|null} <tt>true</tt> if MUC user is the conference focus or
|
|
|
673
|
+ * <tt>false</tt> if is not. When given <tt>mucJid</tt> does not exist in
|
|
|
674
|
+ * the MUC then <tt>null</tt> is returned.
|
|
673
|
675
|
*/
|
|
674
|
676
|
ChatRoom.prototype.isFocus = function (mucJid) {
|
|
675
|
677
|
var member = this.members[mucJid];
|