Skip to content

fix(api,react): propagate gallery/invite errors and prevent infinite loading - #1491

Open
ashwanisingh011 wants to merge 1 commit into
RocketChat:developfrom
ashwanisingh011:fix/handle-api-errors-gallery-invite
Open

ashwanisingh011 wants to merge 1 commit into
RocketChat:developfrom
ashwanisingh011:fix/handle-api-errors-gallery-invite

Conversation

@ashwanisingh011

@ashwanisingh011 ashwanisingh011 commented Dec 5, 2026 •

Copy link
Copy Markdown

Propagate gallery/invite errors and prevent infinite loading

Acceptance Criteria fulfillment

  • Rethrow caught errors in EmbeddedChatApi.getAllImages() and EmbeddedChatApi.findOrCreateInvite() instead of returning Error objects
  • Handle rejections and missing files cleanly in ImageGallery.js and always stop loading in finally
  • Add fetchError fallback UI and finally { setIsLoading(false) } in InviteMembers.js so failures don't spin forever or display "Invalid Date"
  • Verified with yarn build, yarn format:check, yarn lint, and in-memory rejection checks

Fixes #1492

PR Test Details

Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-<PR_NUMBER> after approval. Contributors are requested to replace <PR_NUMBER> with the actual PR number.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(api,react): ImageGallery hangs on spinner and InviteMembers renders Invalid Date when API requests fail

1 participant