Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
090edc5c2c | ||
|
|
dbf77cdc60 | ||
|
|
2ef80cef2c |
@@ -42,10 +42,10 @@ checked against cinny's `lotus` branch.
|
||||
| `io.lotus.decorations` | host → call | per-user avatar-decoration image URLs for in-call tiles. | yes |
|
||||
| `io.lotus.set_deafen` | host → call | deafen remote audio (and optionally mute screenshare audio). | yes |
|
||||
| `io.lotus.request_state` | call → host | sent on (re)registration of a lotus toWidget handler (e.g. decorations) so the host can re-push state that would otherwise only be sent on change (decorations roster, the current focus pin) after an EC-side reconnect/remount. cinny's `resendForkState()` should respond to this the same way it responds to a fresh join. | yes |
|
||||
| `io.lotus.denoise_state` | call → host | real state of the in-source denoise engine — `{ active: boolean, model: string, error?: string }` — sent once the processor attaches (or after the rnnoise fallback also fails), so the host toggle can reflect reality rather than the requested state. | **no** |
|
||||
| `io.lotus.denoise_state` | call → host | real state of the in-source denoise engine — `{ active: boolean, model: string, error?: string }` — sent once the processor attaches (or after the rnnoise fallback also fails), so the host toggle can reflect reality rather than the requested state. | yes |
|
||||
| `io.lotus.call_summary` | call → host | one-shot end-of-call readout for the local participant — `{ durationMs, reconnects, poorMs, verdict }` (#143) — sent on SFU disconnect or in-call teardown, whichever comes first. | yes |
|
||||
| `io.lotus.set_audio_output` | host → call | select the audio output device `{ deviceId }` (#119). | yes |
|
||||
| `io.lotus.audio_output_state` | call → host | the currently selected output `{ deviceId }` (#119). | **no** |
|
||||
| `io.lotus.audio_output_state` | call → host | the currently selected output `{ deviceId }` (#119). | cinny #417 |
|
||||
| `io.lotus.screenshare_notice` | call → host | local screenshare reminder `{ kind: "ended" \| "no-frames" \| "alone" }` — window closed, no frames for 15 s, or 30 min of sharing with nobody else in the call (#39). Each fires at most once per share. | yes |
|
||||
| `io.lotus.set_layout` | host → call | switch the call layout `{ layout: "grid" \| "spotlight" }` (cinny #43 — replaces the host clicking EC's hidden layout radio). | yes |
|
||||
| `io.lotus.open_settings` | host → call | open EC's settings modal, or close it with `{ open: false }`; omit `open` to toggle (cinny #43). | yes |
|
||||
@@ -57,9 +57,10 @@ checked against cinny's `lotus` branch.
|
||||
| `io.lotus.hotkey` | call → host | a watched key went down/up here, or this window's focus changed; see `LotusHotkeyReport` (cinny #43). | yes |
|
||||
| `io.lotus.controls_state` | call → host | `{ screensharing: boolean, layout: "grid" \| "spotlight" \| null, screenshareAction: true, hotkeys: true, frameScreenshare: false, screensharePrompt: boolean, screensharePromptOpen: boolean }` whenever either changes (cinny #43), so the host stops reading EC's DOM for them. Its arrival also tells the host this fork supports the actions above. | yes |
|
||||
| `io.lotus.mic_level` | call → host | local mic level `{ bars: 0 \| 1 \| 2 \| 3 }` (cinny #146), sent only when it changes (≤ 10 Hz); 0 while muted or with no mic. | yes |
|
||||
| `io.lotus.call_error` | call → host | the call's error page is up (`{ code, recoverable }`) or cleared (`{ code: null }`) (cinny #318), so the host stops showing the call as joined after "Connection lost". | cinny #418 |
|
||||
| `io.lotus.reconnect` | host → call | press the error page's Reconnect / Try again (cinny #318). | cinny #418 |
|
||||
|
||||
The two unhandled actions are covered by pending cinny PRs (#413 for
|
||||
`denoise_state`; the #310 change for `audio_output_state`).
|
||||
Entries naming a cinny PR are handled once that PR merges.
|
||||
|
||||
## Fork-only behaviour (no flag needed)
|
||||
|
||||
|
||||
@@ -83,6 +83,36 @@ test("[lotus #28] safeImageUrl only accepts the pinned decoration CDN origin (or
|
||||
stop();
|
||||
});
|
||||
|
||||
test("[matrix #22] both the new decoration host and the old Nextcloud one are accepted", () => {
|
||||
const stop = startLotusDecorations();
|
||||
const { result } = renderHook(() => useLotusDecoration("@alice:example.org"));
|
||||
|
||||
pushDecorations({
|
||||
"@alice:example.org":
|
||||
"https://chat.lotusguild.org/decorations/joystick.png",
|
||||
});
|
||||
expect(result.current).toBe(
|
||||
"https://chat.lotusguild.org/decorations/joystick.png",
|
||||
);
|
||||
|
||||
pushDecorations({
|
||||
"@alice:example.org":
|
||||
"https://drive.lotusguild.org/public.php/dav/files/x/cinny-decorations/joystick.png",
|
||||
});
|
||||
expect(result.current).toBe(
|
||||
"https://drive.lotusguild.org/public.php/dav/files/x/cinny-decorations/joystick.png",
|
||||
);
|
||||
|
||||
// A look-alike subdomain is a different origin.
|
||||
pushDecorations({
|
||||
"@alice:example.org":
|
||||
"https://chat.lotusguild.org.evil.example/joystick.png",
|
||||
});
|
||||
expect(result.current).toBeUndefined();
|
||||
|
||||
stop();
|
||||
});
|
||||
|
||||
test("[lotus #17] the roster survives a handler remount within the same page session", () => {
|
||||
const stop1 = startLotusDecorations();
|
||||
pushDecorations({
|
||||
|
||||
@@ -45,7 +45,11 @@ export function useLotusDecoration(userId: string): string | undefined {
|
||||
// to the actual decoration CDN origin(s) — cinny's `DECORATION_CDN`
|
||||
// (`avatarDecorations.ts`) — plus `blob:`, which EC itself may use for local
|
||||
// previews. Exported so a future CDN move is a one-line edit here.
|
||||
//
|
||||
// matrix #22: decorations moved off Nextcloud to chat.lotusguild.org/decorations
|
||||
// (first entry). drive.lotusguild.org stays until no host build points there.
|
||||
export const ALLOWED_DECORATION_ORIGINS: readonly string[] = [
|
||||
"https://chat.lotusguild.org",
|
||||
"https://drive.lotusguild.org",
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user