Skip to content

Commit e15cbd5

Browse files
committed
fix: handle error in profile tracking
1 parent c2b9fef commit e15cbd5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/webapp/hooks/useCatchUserPresences.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export const useCatchUserPresences = () => {
127127
})
128128
.subscribe(async (status) => {
129129
if (status !== 'SUBSCRIBED') return
130-
await messageSubscription.track(profile)
130+
await messageSubscription.track(profile).catch((err) => {
131+
console.error('Failed to track profile:', err)
132+
})
131133
setWorkspaceSetting('broadcaster', messageSubscription)
132134
})
133135

0 commit comments

Comments
 (0)