|
|
@@ -562,10 +562,11 @@ JitsiConference.prototype.getRole = function () {
|
|
562
|
562
|
|
|
563
|
563
|
/**
|
|
564
|
564
|
* Check if local user is moderator.
|
|
565
|
|
- * @returns {boolean} true if local user is moderator, false otherwise.
|
|
|
565
|
+ * @returns {boolean|null} true if local user is moderator, false otherwise. If
|
|
|
566
|
+ * we're no longer in the conference room then <tt>null</tt> is returned.
|
|
566
|
567
|
*/
|
|
567
|
568
|
JitsiConference.prototype.isModerator = function () {
|
|
568
|
|
- return this.room.isModerator();
|
|
|
569
|
+ return this.room ? this.room.isModerator() : null;
|
|
569
|
570
|
};
|
|
570
|
571
|
|
|
571
|
572
|
/**
|