소스 검색

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