Skip to content

Commit

Permalink
Allow more frequent process inbox calls; (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen authored Jul 31, 2024
1 parent 5e85c7b commit 27f5a7f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/mobile/src/hooks/chat/useLiveChatProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const useInboxProcessor = (connected?: boolean) => {
queryKey: ['process-inbox'],
queryFn: fetchData,
enabled: connected,
staleTime: MINUTE_IN_MS * 2,
staleTime: 500, // 500ms
});
};

Expand Down Expand Up @@ -369,11 +369,11 @@ const processChatMessagesBatch = async (
uniqueMessagesPerConversation[updatedConversation].map(async (newMessage) =>
typeof newMessage.fileMetadata.appData.content === 'string'
? await dsrToMessage(
dotYouClient,
newMessage as HomebaseFile<string>,
ChatDrive,
true
)
dotYouClient,
newMessage as HomebaseFile<string>,
ChatDrive,
true
)
: (newMessage as HomebaseFile<ChatMessage>)
)
)
Expand Down

0 comments on commit 27f5a7f

Please sign in to comment.