Fix ConversationDetails groupsInCommon empty

This commit is contained in:
Jamie Kyle 2024-03-14 12:18:50 -07:00 committed by GitHub
parent 1fcad38967
commit e0c2627dc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,7 +64,7 @@ function getGroupsInCommonSorted(
conversation: ConversationType,
allComposableConversations: ReadonlyArray<ConversationType>
) {
if (conversation.type === 'direct') {
if (conversation.type !== 'direct') {
return [];
}
const groupsInCommonUnsorted = allComposableConversations.filter(