|
@@ -110,6 +110,8 @@ export default class ChatRoom extends Listenable {
|
110
|
110
|
* @param {boolean} options.disableDiscoInfo - when set to {@code false} will skip disco info.
|
111
|
111
|
* This is intended to be used only for lobby rooms.
|
112
|
112
|
* @param {boolean} options.enableLobby - when set to {@code false} will skip creating lobby room.
|
|
113
|
+ * @param {boolean} options.hiddenFromRecorderFeatureEnabled - when set to {@code true} we will check identity tag
|
|
114
|
+ * for node presence.
|
113
|
115
|
*/
|
114
|
116
|
constructor(connection, jid, password, XMPP, options) {
|
115
|
117
|
super();
|
|
@@ -488,7 +490,13 @@ export default class ChatRoom extends Listenable {
|
488
|
490
|
|
489
|
491
|
if (userInfo) {
|
490
|
492
|
identity.user = {};
|
491
|
|
- for (const tag of [ 'id', 'name', 'avatar' ]) {
|
|
493
|
+ const tags = [ 'id', 'name', 'avatar' ];
|
|
494
|
+
|
|
495
|
+ if (this.options.hiddenFromRecorderFeatureEnabled) {
|
|
496
|
+ tags.push('hidden-from-recorder');
|
|
497
|
+ }
|
|
498
|
+
|
|
499
|
+ for (const tag of tags) {
|
492
|
500
|
const child
|
493
|
501
|
= userInfo.children.find(c => c.tagName === tag);
|
494
|
502
|
|