فهرست منبع

Fix typo: occupant filter is buggy in MUC with less than 5 occupants.

John Livingston 11 ماه پیش
والد
کامیت
2f8cfc02d0
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/plugins/muc-views/templates/muc-sidebar.js

+ 1 - 1
src/plugins/muc-views/templates/muc-sidebar.js

@@ -50,7 +50,7 @@ export default (el, o) => {
     const is_filter_visible = el.model.get('filter_visible');
     const is_filter_visible = el.model.get('filter_visible');
 
 
     const btns = /** @type {TemplateResult[]} */ [];
     const btns = /** @type {TemplateResult[]} */ [];
-    if (el.model.occupants < 6) {
+    if (el.model.occupants?.length < 6) {
         // We don't show the filter
         // We don't show the filter
         btns.push(
         btns.push(
             html` <i class="hide-occupants" @click=${(/** @type {MouseEvent} */ev) => el.closeSidebar(ev)}>
             html` <i class="hide-occupants" @click=${(/** @type {MouseEvent} */ev) => el.closeSidebar(ev)}>