add negotiate failed to ToDisconnectReason
@@ -149,6 +149,8 @@ func (p ParticipantCloseReason) ToDisconnectReason() livekit.DisconnectReason {
return livekit.DisconnectReason_SERVER_SHUTDOWN
case ParticipantCloseReasonSimulateServerLeave:
return livekit.DisconnectReason_SERVER_SHUTDOWN
+ case ParticipantCloseReasonNegotiateFailed:
+ return livekit.DisconnectReason_STATE_MISMATCH
default:
// the other types will map to unknown reason
return livekit.DisconnectReason_UNKNOWN_REASON
