瀏覽代碼

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 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)}>