Browse Source

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

John Livingston 11 tháng trước cách đây
mục cha
commit
2f8cfc02d0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 btns = /** @type {TemplateResult[]} */ [];
-    if (el.model.occupants < 6) {
+    if (el.model.occupants?.length < 6) {
         // We don't show the filter
         btns.push(
             html` <i class="hide-occupants" @click=${(/** @type {MouseEvent} */ev) => el.closeSidebar(ev)}>