Regression: Local search is returning wrong object (#4567)

This commit is contained in:
Reinaldo Neto 2022-09-27 15:08:44 -03:00 committed by GitHub
parent e883795c5f
commit d2d1d787f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 7 deletions

View File

@ -27,18 +27,15 @@ export const localSearch = async ({ text = '', filterUsers = true, filterRooms =
}
const search = subscriptions.slice(0, 7).map(item => ({
avatarETag: item.avatarETag,
_id: item._id,
rid: item.rid,
name: item.name,
t: item.t,
fname: item.fname,
avatarETag: item.avatarETag,
t: item.t,
encrypted: item.encrypted,
lastMessage: item.lastMessage,
_id: item._id,
status: item.status,
username: item.usernames,
outside: false,
search: true
status: item.status
})) as ISearchLocal[];
return search;