|
@@ -59849,8 +59849,6 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_4__["default"].plugins
|
|
},
|
|
},
|
|
|
|
|
|
render() {
|
|
render() {
|
|
- const that = this;
|
|
|
|
-
|
|
|
|
if (!this.mayBeShown()) {
|
|
if (!this.mayBeShown()) {
|
|
u.hideElement(this.el);
|
|
u.hideElement(this.el);
|
|
return this;
|
|
return this;
|
|
@@ -59861,13 +59859,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_4__["default"].plugins
|
|
requesting = this.model.get('requesting'),
|
|
requesting = this.model.get('requesting'),
|
|
subscription = this.model.get('subscription');
|
|
subscription = this.model.get('subscription');
|
|
const classes_to_remove = ['current-xmpp-contact', 'pending-xmpp-contact', 'requesting-xmpp-contact'].concat(Object.keys(STATUSES));
|
|
const classes_to_remove = ['current-xmpp-contact', 'pending-xmpp-contact', 'requesting-xmpp-contact'].concat(Object.keys(STATUSES));
|
|
-
|
|
|
|
- _.each(classes_to_remove, function (cls) {
|
|
|
|
- if (_.includes(that.el.className, cls)) {
|
|
|
|
- that.el.classList.remove(cls);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
-
|
|
|
|
|
|
+ classes_to_remove.forEach(c => u.removeClass(c, this.el));
|
|
this.el.classList.add(show);
|
|
this.el.classList.add(show);
|
|
this.el.setAttribute('data-status', show);
|
|
this.el.setAttribute('data-status', show);
|
|
this.highlight();
|
|
this.highlight();
|
|
@@ -60090,11 +60082,9 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_4__["default"].plugins
|
|
show() {
|
|
show() {
|
|
u.showElement(this.el);
|
|
u.showElement(this.el);
|
|
|
|
|
|
- _.each(this.getAll(), contact_view => {
|
|
|
|
- if (contact_view.mayBeShown() && this.model.get('state') === _converse.OPENED) {
|
|
|
|
- u.showElement(contact_view.el);
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
|
|
+ if (this.model.get('state') === _converse.OPENED) {
|
|
|
|
+ Object.values(this.getAll()).filter(v => v.mayBeShown()).forEach(v => u.showElement(v.el));
|
|
|
|
+ }
|
|
|
|
|
|
return this;
|
|
return this;
|
|
},
|
|
},
|