kopia lustrzana https://codeberg.org/nmkj/audon
fix issues/9
rodzic
0ed743d51f
commit
06db3d3a12
8
room.go
8
room.go
|
@ -166,9 +166,13 @@ func joinRoomHandler(c echo.Context) (err error) {
|
|||
return ErrRoomNotFound
|
||||
}
|
||||
|
||||
// decline the request if user is already in the room
|
||||
// remove old connection if user is already in the room
|
||||
if room.IsUserInLivekitRoom(c.Request().Context(), user.AudonID) {
|
||||
return echo.NewHTTPError(http.StatusNotAcceptable, "already_in_room")
|
||||
lkRoomServiceClient.RemoveParticipant(c.Request().Context(), &livekit.RoomParticipantIdentity{
|
||||
Room: room.RoomID,
|
||||
Identity: user.AudonID,
|
||||
})
|
||||
// return echo.NewHTTPError(http.StatusNotAcceptable, "already_in_room")
|
||||
}
|
||||
|
||||
now := time.Now().UTC()
|
||||
|
|
Ładowanie…
Reference in New Issue