(fix): incorrect parse in getRoomMetadata

(qol): update todos
This commit is contained in:
Alois 2026-05-01 00:35:37 +02:00
commit 39144e97b3
3 changed files with 7 additions and 4 deletions

View file

@ -220,9 +220,12 @@ function requireRuntime(runtime: Runtime | null): Runtime {
export function getRoomMetadata() {
const roomMetadata = room.metadata;
return JSON.parse(roomMetadata || '{"admin": 0}').catch(() => ({
admin: 0,
})) as { admin: number };
try {
const data = JSON.parse(roomMetadata || '{"admin": 0}');
return data as { admin: number };
} catch {
return { admin: 0 };
}
}
// Sync local participant flags and screen-share derived state for the active call UI.

View file

@ -7,6 +7,5 @@
- Buttons
- Preview image
- Mobile
- Deaf status is not synced
- Call invite popup
- Sounds

View file

@ -2,3 +2,4 @@
- Add "Rename Conversations to Friends" option in settings
- Handle live messages in notification context
- Add files to message height calculation
- Mobile message box broken