Skip to content

Commit

Permalink
fix missing conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
saulmc committed Sep 17, 2024
1 parent 0181fd0 commit d752df5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion screens/ConversationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,18 @@ function ConversationList({ navigation, route, searchBarRef }: Props) {
const { likelyNotSpam } = sortRequestsBySpamScore(
sortedConversationsWithPreview.conversationsRequests
);
const showChatNullState = likelyNotSpam.length === 0 && !searchQuery;

const conversations = useChatStore(
(s) => s.sortedConversationsWithPreview.conversationsInbox
);
const conversationsRequests = useChatStore(
(s) => s.sortedConversationsWithPreview.conversationsRequests
);

const showChatNullState =
conversations.length === 0 &&
conversationsRequests.length === 0 &&
!searchQuery;

useEffect(() => {
if (!initialLoadDoneOnce) {
Expand Down

0 comments on commit d752df5

Please sign in to comment.