From 5437433232d95b9d8c57f2bd133d48ad07fc43ad Mon Sep 17 00:00:00 2001 From: warrickct Date: Thu, 24 Feb 2022 09:25:10 +1100 Subject: [PATCH] Fix passing wrong values to convo list. --- ts/state/selectors/conversations.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ts/state/selectors/conversations.ts b/ts/state/selectors/conversations.ts index 21475aebb..723b3fd2a 100644 --- a/ts/state/selectors/conversations.ts +++ b/ts/state/selectors/conversations.ts @@ -444,11 +444,12 @@ const _getConversationRequests = ( sortedConversations: Array ): Array => { return _.filter(sortedConversations, conversation => { + const { isApproved, isBlocked, isPrivate, isMe } = conversation; const isRequest = ConversationModel.hasValidRequestValues({ - isApproved: conversation.isApproved, - isBlocked: !conversation.isBlocked, - isPrivate: conversation.isPrivate, - isMe: conversation.isMe, + isApproved, + isBlocked, + isPrivate, + isMe, }); return isRequest; });