Regression: Local search is returning wrong object (#4567)
This commit is contained in:
parent
b33f4b0966
commit
a3e0a7be58
|
@ -27,18 +27,15 @@ export const localSearch = async ({ text = '', filterUsers = true, filterRooms =
|
||||||
}
|
}
|
||||||
|
|
||||||
const search = subscriptions.slice(0, 7).map(item => ({
|
const search = subscriptions.slice(0, 7).map(item => ({
|
||||||
avatarETag: item.avatarETag,
|
_id: item._id,
|
||||||
rid: item.rid,
|
rid: item.rid,
|
||||||
name: item.name,
|
name: item.name,
|
||||||
t: item.t,
|
|
||||||
fname: item.fname,
|
fname: item.fname,
|
||||||
|
avatarETag: item.avatarETag,
|
||||||
|
t: item.t,
|
||||||
encrypted: item.encrypted,
|
encrypted: item.encrypted,
|
||||||
lastMessage: item.lastMessage,
|
lastMessage: item.lastMessage,
|
||||||
_id: item._id,
|
status: item.status
|
||||||
status: item.status,
|
|
||||||
username: item.usernames,
|
|
||||||
outside: false,
|
|
||||||
search: true
|
|
||||||
})) as ISearchLocal[];
|
})) as ISearchLocal[];
|
||||||
|
|
||||||
return search;
|
return search;
|
||||||
|
|
Loading…
Reference in New Issue