(fix): incorrect parse in getRoomMetadata
(qol): update todos
This commit is contained in:
parent
c39185c200
commit
39144e97b3
3 changed files with 7 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -7,6 +7,5 @@
|
|||
- Buttons
|
||||
- Preview image
|
||||
- Mobile
|
||||
- Deaf status is not synced
|
||||
- Call invite popup
|
||||
- Sounds
|
||||
|
|
|
|||
1
todo.md
1
todo.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue