소스 검색

Fix mistyped example (#991)

was open instead of get in the example for get
Senya 7 년 전
부모
커밋
ff0f1d698d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/source/developer_api.rst

+ 1 - 1
docs/source/developer_api.rst

@@ -916,7 +916,7 @@ It takes 3 parameters:
             var _converse = this._converse;
             _converse.api.waitUntil('roomsAutoJoined').then(function () {
                 var create_if_not_found = true;
-                this._converse.api.rooms.open(
+                this._converse.api.rooms.get(
                     'group@muc.example.com',
                     {'nick': 'dread-pirate-roberts'},
                     create_if_not_found