瀏覽代碼

fix: Adds back removed method used by jibri. (#1561)

* fix: Adds back removed method used by jibri.

It was removed by https://github.com/jitsi/lib-jitsi-meet/pull/1512.

* squash: Adds a deprecated note.
dev1
Дамян Минков 4 年之前
父節點
當前提交
e5b23e815e
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 14 行新增0 行删除
  1. 14
    0
      modules/xmpp/ChatRoom.js

+ 14
- 0
modules/xmpp/ChatRoom.js 查看文件

@@ -1401,6 +1401,20 @@ export default class ChatRoom extends Listenable {
1401 1401
             errorCallback);
1402 1402
     }
1403 1403
 
1404
+    /**
1405
+     * Adds the key to the presence map, overriding any previous value.
1406
+     * This method is used by jibri.
1407
+     *
1408
+     * @param key The key to add or replace.
1409
+     * @param values The new values.
1410
+     * @returns {boolean|null} <tt>true</tt> if the operation succeeded or <tt>false</tt> when no add or replce was
1411
+     * performed as the value was already there.
1412
+     * @deprecated Use 'addOrReplaceInPresence' instead. TODO: remove it from here and jibri.
1413
+     */
1414
+    addToPresence(key, values) {
1415
+        return this.addOrReplaceInPresence(key, values);
1416
+    }
1417
+
1404 1418
     /**
1405 1419
      * Adds the key to the presence map, overriding any previous value.
1406 1420
      * @param key The key to add or replace.

Loading…
取消
儲存