mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 06:03:22 +00:00
indexeddb search filter
This commit is contained in:
parent
26050c20b8
commit
008e566462
@ -180,6 +180,9 @@ const IndexedDB = {
|
||||
if (filter.kinds) {
|
||||
query = query.where('kind').anyOf(filter.kinds);
|
||||
}
|
||||
if (filter.search) {
|
||||
query = query.filter((event: Event) => event.content?.includes(filter.search!));
|
||||
}
|
||||
if (filter.limit) {
|
||||
query = query.limit(filter.limit);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user