Skip to content

Commit 612668a

Browse files
committed
fix: respect customSearchRoomEnabled in RoomList. fixes #566
1 parent 518697f commit 612668a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/lib/RoomsList/RoomsList.vue

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ export default {
109109
110110
computed: {
111111
filteredRooms() {
112-
return filteredItems(this.rooms || [], 'roomName', this.filter)
112+
return this.customSearchRoomEnabled
113+
? this.rooms || []
114+
: filteredItems(this.rooms || [], 'roomName', this.filter)
113115
}
114116
},
115117
@@ -220,12 +222,6 @@ export default {
220222
221223
if (this.customSearchRoomEnabled) {
222224
this.$emit('search-room', this.filter)
223-
} else {
224-
this.filteredRooms = filteredItems(
225-
this.rooms,
226-
'roomName',
227-
this.filter
228-
)
229225
}
230226
},
231227
openRoom(room) {

0 commit comments

Comments
 (0)