소스 검색

Bugfixes in fetching of occupants

JC Brand 6 년 전
부모
커밋
9a94e5b47e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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
                     });
                 });