peertube
Namekuji 2022-12-18 01:15:33 -05:00
rodzic 0ed743d51f
commit 06db3d3a12
1 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -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()