(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() {
|
export function getRoomMetadata() {
|
||||||
const roomMetadata = room.metadata;
|
const roomMetadata = room.metadata;
|
||||||
return JSON.parse(roomMetadata || '{"admin": 0}').catch(() => ({
|
try {
|
||||||
admin: 0,
|
const data = JSON.parse(roomMetadata || '{"admin": 0}');
|
||||||
})) as { admin: number };
|
return data as { admin: number };
|
||||||
|
} catch {
|
||||||
|
return { admin: 0 };
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sync local participant flags and screen-share derived state for the active call UI.
|
// Sync local participant flags and screen-share derived state for the active call UI.
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,5 @@
|
||||||
- Buttons
|
- Buttons
|
||||||
- Preview image
|
- Preview image
|
||||||
- Mobile
|
- Mobile
|
||||||
- Deaf status is not synced
|
|
||||||
- Call invite popup
|
- Call invite popup
|
||||||
- Sounds
|
- Sounds
|
||||||
|
|
|
||||||
1
todo.md
1
todo.md
|
|
@ -2,3 +2,4 @@
|
||||||
- Add "Rename Conversations to Friends" option in settings
|
- Add "Rename Conversations to Friends" option in settings
|
||||||
- Handle live messages in notification context
|
- Handle live messages in notification context
|
||||||
- Add files to message height calculation
|
- Add files to message height calculation
|
||||||
|
- Mobile message box broken
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue