fix: Search Messages crashes on 429 from server #974
Fixes #974 by introducing a timeout (20s) on a 429 by the server and then trying again. In this period (timeouts and fetches) a Throbber (loading component) is rendered.
Video/Screenshots
Screencast from 2025-02-11 00-04-16.webm
PR Test Details
Note: The PR will be ready for live testing at https://rocketchat.github.io/EmbeddedChat/pulls/pr-975 after approval. Contributors are requested to replace <pr_number> with the actual PR number.
There is one possible way of knowing the exact time to wait, But that is very messy and RC main dosen't use it as well. It will require the modification of EmbeddedChatApi. Instead of sending to chat.search we would send to rocketchatSearch.search which gives the exact milliseconds to wait. But its usage is completely different.