Exclude unapproved contacts/conversations from contacts list.

pull/2170/head
warrickct 3 years ago
parent 7223fc067f
commit 8eeec6b96c

@ -339,7 +339,11 @@ export const _getLeftPaneLists = (
let unreadCount = 0; let unreadCount = 0;
for (const conversation of sortedConversations) { for (const conversation of sortedConversations) {
if (conversation.activeAt !== undefined && conversation.type === ConversationTypeEnum.PRIVATE) { if (
conversation.activeAt !== undefined &&
conversation.type === ConversationTypeEnum.PRIVATE &&
conversation.isApproved
) {
directConversations.push(conversation); directConversations.push(conversation);
} }

Loading…
Cancel
Save