feat(web): add chat info sync polling fallback
Some checks are pending
CI / test (push) Has started running

This commit is contained in:
2026-03-08 21:31:58 +03:00
parent 4555a8454c
commit cb37e735b0
2 changed files with 11 additions and 1 deletions

View File

@@ -290,6 +290,16 @@ export function ChatInfoPanel({ chatId, open, onClose }: Props) {
return () => window.removeEventListener("bm:chat-updated", onRealtimeChatUpdated);
}, [open, chatId]);
useEffect(() => {
if (!open || !chatId) {
return;
}
const timer = window.setInterval(() => {
void refreshPanelData(chatId, false);
}, 15000);
return () => window.clearInterval(timer);
}, [open, chatId]);
useEffect(() => {
const onKeyDown = (event: KeyboardEvent) => {
if (event.key === "Escape") {