Youtube: Remove single groupwatch restriction

Causing issues right now and really not necessary in the long run. Realistically there's probably no issue with a room running two streams.
This commit is contained in:
Mia 2022-09-13 08:51:48 -05:00 committed by GitHub
parent 5fa2c2a3c3
commit 3745a4db4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,11 +306,6 @@ export class YoutubeInterface {
const id = this.getId(url);
const videoInfo = await this.getVideoData(id);
if (!videoInfo) throw new Chat.ErrorMessage(`Video not found.`);
if ([...Rooms.rooms.values()].some(r => r.roomid.startsWith('video-watch-'))) {
throw new Chat.ErrorMessage(
`A groupwatch is already going on. Please wait until it is done before creating another.`
);
}
const num = baseRoom.nextGameNumber();
baseRoom.saveSettings();
const gameRoom = Rooms.createGameRoom(`video-watch-${num}` as RoomID, Utils.html`[Group Watch] ${title}`, {