Skip to content

Commit

Permalink
Merge pull request #762 from ephemeraHQ/saulmc/fix-conversations-list
Browse files Browse the repository at this point in the history
fix missing conversations
  • Loading branch information
saulmc authored Sep 17, 2024
2 parents 1ecfb0a + d752df5 commit d7c3156
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 d7c3156

Please sign in to comment.