From 66158b90704aa3728c9f4db5d9f644fa7cf96940 Mon Sep 17 00:00:00 2001 From: benya Date: Sun, 8 Mar 2026 02:35:08 +0300 Subject: [PATCH] fix(web): handle blocked users fetch fallback in chat info --- web/src/components/ChatInfoPanel.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/web/src/components/ChatInfoPanel.tsx b/web/src/components/ChatInfoPanel.tsx index 0ad7877..629c9fa 100644 --- a/web/src/components/ChatInfoPanel.tsx +++ b/web/src/components/ChatInfoPanel.tsx @@ -76,9 +76,15 @@ export function ChatInfoPanel({ chatId, open, onClose }: Props) { setMuted(notificationSettings.muted); } if (detail.type === "private" && !detail.is_saved && detail.counterpart_user_id) { - const blocked = await listBlockedUsers(); - if (!cancelled) { - setCounterpartBlocked(blocked.some((u) => u.id === detail.counterpart_user_id)); + try { + const blocked = await listBlockedUsers(); + if (!cancelled) { + setCounterpartBlocked(blocked.some((u) => u.id === detail.counterpart_user_id)); + } + } catch { + if (!cancelled) { + setCounterpartBlocked(false); + } } } else if (!cancelled) { setCounterpartBlocked(false);