Ver Fonte

Bugfixes in fetching of occupants

JC Brand há 6 anos atrás
pai
commit
9a94e5b47e
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/headless/converse-muc.js

+ 2 - 2
src/headless/converse-muc.js

@@ -229,11 +229,11 @@ converse.plugins.add('converse-muc', {
                 );
                 this.occupants.chatroom  = this;
                 this.occupants.fetched = new Promise(resolve => {
-                    this.fetch({
+                    this.occupants.fetch({
                         'add': true,
                         'silent': true,
                         'success': resolve,
-                        'failure': resolve
+                        'error': resolve
                     });
                 });