-
-
Notifications
You must be signed in to change notification settings - Fork 509
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I implemented custom room search on a Laravel backend. Fortunetely latest version of Advanced Chat (2.1.1) fixed custom search because in 2.1.0 it was completely broken. But, one new issue has appeared. Even with custom-search-room-enabled flag, this package still forces frontend filtering after a fresh room list was already given by the backend.
I think I found the culprit here (RoomsList.vue):
computed: {
filteredRooms() {
return filteredItems(this.rooms || [], 'roomName', this.filter)
}
},After changing to this:
computed: {
filteredRooms() {
return this.customSearchRoomEnabled
? this.rooms || []
: filteredItems(this.rooms || [], 'roomName', this.filter)
}
},... problem was resolved.
Expected behavior
With custom-search-room-enabled option set, package should not apply frontend filtering to room list when user entering text into the search field.
Device (please complete the following information)
- OS: Windows 11
- Browser: Chrome 142.0.7444.176
- Package version: 2.1.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
In progress