thelounge/server
Reto Brunner 0ebc3a574c search: ignore searchResults if it isn't the active query
Prior to this, the search is still racy but one tends to notice
this only when the DB is large or network is involved.
The user can initiate a search, get bored, navigate to another chan
issue a different search.

Now however, the results of the first search come back in and
hilarity ensues as we are now confused with the state.

To avoid this, keep track of the last search done and any result
that comes in that isn't equal to the active query is garbage and
can be dropped.
2023-01-08 11:41:09 +01:00
..
command-line Merge branch 'installDocs' 2022-08-01 13:29:48 +02:00
models messageStorage: convert to async 2022-11-02 00:01:36 +01:00
plugins search: ignore searchResults if it isn't the active query 2023-01-08 11:41:09 +01:00
types search: ignore searchResults if it isn't the active query 2023-01-08 11:41:09 +01:00
client.ts search: ignore searchResults if it isn't the active query 2023-01-08 11:41:09 +01:00
clientManager.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
config.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
helper.ts messageStorage: convert to async 2022-11-02 00:01:36 +01:00
identification.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
index.d.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
index.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
log.ts TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00
server.ts search: ignore searchResults if it isn't the active query 2023-01-08 11:41:09 +01:00
tsconfig.json TypeScript and Vue 3 (#4559) 2022-06-18 17:25:21 -07:00