refactor(chat): show images in page overlay

This commit is contained in:
2026-07-09 10:11:25 +08:00
parent cb7791dd8d
commit fc92c3a5d5
23 changed files with 253 additions and 627 deletions
+4 -1
View File
@@ -16,10 +16,13 @@ describe("route meta", () => {
});
it("classifies known dynamic chat routes", () => {
expect(getRouteAccess("/chat/image/msg_1")).toBe("session");
expect(getRouteAccess("/chat/deviceid/device_1")).toBe("public");
});
it("does not keep the removed chat image route as a guarded route", () => {
expect(getRouteAccess("/chat/image/msg_1")).toBe("public");
});
it("includes private room in static routes", () => {
expect(ALL_STATIC_ROUTES).toContain(ROUTES.privateRoom);
});