Skip to content

Commit 2f8cfc0

Browse files
JohnXLivingstonjcbrand
authored andcommitted
Fix typo: occupant filter is buggy in MUC with less than 5 occupants.
1 parent 9ddf6e7 commit 2f8cfc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default (el, o) => {
5050
const is_filter_visible = el.model.get('filter_visible');
5151

5252
const btns = /** @type {TemplateResult[]} */ [];
53-
if (el.model.occupants < 6) {
53+
if (el.model.occupants?.length < 6) {
5454
// We don't show the filter
5555
btns.push(
5656
html` <i class="hide-occupants" @click=${(/** @type {MouseEvent} */ev) => el.closeSidebar(ev)}>

0 commit comments

Comments
 (0)