sendou.ink/app/features/chat
Kalle 747a63edbc Show current route's chat in room list even when expired
Non-participants (e.g. tournament organizers) viewing a tournament
match chat could see the chat auto-open correctly, but clicking the
back arrow to the room list left the chat invisible — the only way
back was to leave the route and return.

The match chat appears in chatContext.rooms via the SUBSCRIBE
response, which (unlike the initial-payload path that participants
go through) does not check room expiry on the skalop side. So an
organizer viewing an old match ends up with an expired room in
their rooms list. ChatView already handles this gracefully with a
read-only banner, but RoomList was filtering on
expiresAt > Date.now() and dropping it.

Cleanup in useChatRouteSync removes the room from chatContext.rooms
on navigation, so exempting the current route's chatCode from the
expiry filter only affects the page that subscribed to it.
2026-05-02 11:36:56 +03:00
..
components Migrate to nested CSS 2026-03-28 16:30:28 +02:00
routes Design refresh + a bunch of stuff (#2864) 2026-03-19 17:51:42 +02:00
chat-constants.ts SendouQ real(er) time with notifications (#1525) 2023-10-18 18:33:17 +03:00
chat-hooks.ts Design refresh + a bunch of stuff (#2864) 2026-03-19 17:51:42 +02:00
chat-provider-types.ts Add TO/Stream labels back to tournament chats 2026-03-23 21:04:49 +02:00
chat-types.ts Design refresh + a bunch of stuff (#2864) 2026-03-19 17:51:42 +02:00
chat-utils.test.ts Design refresh + a bunch of stuff (#2864) 2026-03-19 17:51:42 +02:00
chat-utils.ts Allow TO's to read chats after tournament has finalized 2026-04-19 10:29:54 +03:00
ChatProvider.tsx Show current route's chat in room list even when expired 2026-05-02 11:36:56 +03:00
ChatSystemMessage.server.ts Fix tournament chats expiring too early 2026-04-25 21:15:17 +03:00
useChatContext.ts Design refresh + a bunch of stuff (#2864) 2026-03-19 17:51:42 +02:00