This commit is contained in:
Adhiraj
2020-08-23 22:41:36 +05:30
parent c44413538b
commit a82d5bb1fe
3 changed files with 11 additions and 12 deletions

View File

@@ -94,7 +94,7 @@ export class WAConnection extends Base {
async loadChats (count: number, before: number | null, searchString?: string) {
let db = this.chats
if (searchString) {
db = db.filter (value => value.title?.includes (searchString) || value.jid?.startsWith(searchString))
db = db.filter (value => value.name?.includes (searchString) || value.jid?.startsWith(searchString))
}
const chats = db.paginated (before, count)
await Promise.all (