fix: notify displaced tab when user joins voice from another session
When a user joins a voice channel while already connected from another tab, the server now sends a 'displaced' reason on voice_disconnected. The client tears down LiveKit and shows an informational toast.
This commit is contained in:
@@ -330,7 +330,7 @@ export type ServerEvent =
|
||||
| { type: 'voice_space_deafened'; userId: string; channelId: string; spaceId: string; deafened: boolean }
|
||||
| { type: 'voice_permission_muted'; userId: string; spaceId: string; muted: boolean }
|
||||
| { type: 'voice_moved'; userId: string; oldChannelId: string; newChannelId: string }
|
||||
| { type: 'voice_disconnected'; userId: string; channelId: string }
|
||||
| { type: 'voice_disconnected'; userId: string; channelId: string; reason?: 'displaced' }
|
||||
| { type: 'user_updated'; user: User }
|
||||
| { type: 'member_banned'; spaceId: string; reason: string | null }
|
||||
| { type: 'category_created'; category: ChannelCategory; spaceId: string }
|
||||
|
||||
Reference in New Issue
Block a user