|
@@ -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.
|