gitdataai/libs/api/room
ZhenYi a171d691c6
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions
fix(room): align ReactionGroup types with frontend and guard reaction update handler
- Fix ReactionGroup.count: i64 -> i32 and users: Vec<Uuid> -> Vec<String>
  to match frontend ReactionItem (count: number, users: string[]).
  Mismatched types caused the WS reaction update to silently fail.
  Also update ReactionItem in api/ws_types.rs to match.
- Add activeRoomIdRef guard in onRoomReactionUpdated to prevent stale
  room state from processing outdated events after room switch.
- Switch from prev.map() to targeted findIndex+spread in onRoomReactionUpdated
  to avoid unnecessary array recreation.
2026-04-17 23:00:52 +08:00
..
ai.rs init 2026-04-15 09:08:09 +08:00
category.rs init 2026-04-15 09:08:09 +08:00
draft_and_history.rs init 2026-04-15 09:08:09 +08:00
member.rs init 2026-04-15 09:08:09 +08:00
message.rs init 2026-04-15 09:08:09 +08:00
mod.rs fix(room): add HTTP batch reactions endpoint and clean up dead code 2026-04-17 22:12:10 +08:00
notification.rs init 2026-04-15 09:08:09 +08:00
pin.rs init 2026-04-15 09:08:09 +08:00
reaction.rs fix(room): accept comma-separated message_ids string in batch reaction endpoint 2026-04-17 22:28:24 +08:00
room.rs init 2026-04-15 09:08:09 +08:00
thread.rs init 2026-04-15 09:08:09 +08:00
ws_handler.rs fix(room): add access check to ws_universal subscribe and fix stream handling 2026-04-17 17:15:34 +08:00
ws_types.rs fix(room): align ReactionGroup types with frontend and guard reaction update handler 2026-04-17 23:00:52 +08:00
ws_universal.rs fix(room): resolve remaining defects from second review 2026-04-17 20:28:45 +08:00
ws.rs fix(ws): allow APP_DOMAIN_URL and APP_STATIC_DOMAIN origins 2026-04-16 18:51:52 +08:00