Fix passing wrong values to convo list.

pull/2222/head
warrickct 3 years ago
parent 93f37ba66f
commit 5437433232

@ -444,11 +444,12 @@ const _getConversationRequests = (
sortedConversations: Array<ReduxConversationType>
): Array<ReduxConversationType> => {
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;
});

Loading…
Cancel
Save