Переглянути джерело

Fixes leaving the room when only user and focus are present.

When only one participant is in the room and leaves(hangups) the only participant in members is focus.
release-8443
damencho 9 роки тому
джерело
коміт
a2188ad5b7
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      modules/xmpp/ChatRoom.js

+ 1
- 1
modules/xmpp/ChatRoom.js Переглянути файл

@@ -507,7 +507,7 @@ ChatRoom.prototype.onPresenceUnavailable = function (pres, from) {
507 507
     }
508 508
     // If the status code is 110 this means we're leaving and we would like
509 509
     // to remove everyone else from our view, so we trigger the event.
510
-    else if (Object.keys(this.members).length > 1) {
510
+    else if (Object.keys(this.members).length > 0) {
511 511
         for (var i in this.members) {
512 512
             var member = this.members[i];
513 513
             delete this.members[i];

Завантаження…
Відмінити
Зберегти