hide activeAt = 0 convo from search results

Fixes #2033
This commit is contained in:
Audric Ackermann 2021-11-17 10:22:54 +11:00
parent 22e4c9d850
commit 1d3a89f058
No known key found for this signature in database
GPG key ID: 999F434D76324AD4

View file

@ -44,8 +44,9 @@ export const getSearchResults = createSelector(
state.conversations.map(id => {
const value = lookup[id];
// Don't return anything when activeAt is undefined (i.e. no current conversations with this user)
if (value.activeAt === undefined) {
// Don't return anything when activeAt is unset (i.e. no current conversations with this user)
if (value.activeAt === undefined || value.activeAt === 0) {
//activeAt can be 0 when linking device
return null;
}