瀏覽代碼

Remove unused setting

JC Brand 5 月之前
父節點
當前提交
0c88694ea7
共有 2 個文件被更改,包括 0 次插入7 次删除
  1. 0 3
      src/headless/plugins/muc/api.js
  2. 0 4
      src/headless/types/plugins/muc/api.d.ts

+ 0 - 3
src/headless/plugins/muc/api.js

@@ -67,9 +67,6 @@ const rooms = {
      *     in the [XEP-0045 MUC specification](https://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
      *     The values should be named without the `muc#roomconfig_` prefix.
      * @param {boolean} [attrs.minimized] A boolean, indicating whether the room should be opened minimized or not.
-     * @param {boolean} [attrs.bring_to_foreground] A boolean indicating whether the room should be
-     *     brought to the foreground and therefore replace the currently shown chat.
-     *     If there is no chat currently open, then this option is ineffective.
      * @param {boolean} [force=false] - By default, a minimized
      *   room won't be maximized (in `overlayed` view mode) and in
      *   `fullscreen` view mode a newly opened room won't replace

+ 0 - 4
src/headless/types/plugins/muc/api.d.ts

@@ -38,9 +38,6 @@ declare namespace rooms {
      *     in the [XEP-0045 MUC specification](https://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
      *     The values should be named without the `muc#roomconfig_` prefix.
      * @param {boolean} [attrs.minimized] A boolean, indicating whether the room should be opened minimized or not.
-     * @param {boolean} [attrs.bring_to_foreground] A boolean indicating whether the room should be
-     *     brought to the foreground and therefore replace the currently shown chat.
-     *     If there is no chat currently open, then this option is ineffective.
      * @param {boolean} [force=false] - By default, a minimized
      *   room won't be maximized (in `overlayed` view mode) and in
      *   `fullscreen` view mode a newly opened room won't replace
@@ -83,7 +80,6 @@ declare namespace rooms {
         auto_configure?: boolean;
         roomconfig?: object;
         minimized?: boolean;
-        bring_to_foreground?: boolean;
     }, force?: boolean): Promise<MUC[] | MUC>;
     /**
      * Fetches the object representing a MUC chatroom (aka groupchat)