Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions examples/SampleApp/src/hooks/usePaginatedAttachments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const usePaginatedAttachments = (

if (!hasMoreResults.current) {
queryInProgress.current = false;
setLoading(false);
return;
}

Expand All @@ -50,6 +51,7 @@ export const usePaginatedAttachments = (

if (!newMessages) {
queryInProgress.current = false;
setLoading(false);
return;
}

Expand Down
2 changes: 2 additions & 0 deletions examples/SampleApp/src/hooks/usePaginatedPinnedMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const usePaginatedPinnedMessages = (channel: Channel<StreamChatGenerics>)

if (!hasMoreResults.current) {
queryInProgress.current = false;
setLoading(false);
return;
}

Expand All @@ -48,6 +49,7 @@ export const usePaginatedPinnedMessages = (channel: Channel<StreamChatGenerics>)

if (!newMessages) {
queryInProgress.current = false;
setLoading(false);
return;
}

Expand Down