1
0
Fork 0
This commit is contained in:
Chocobozzz 2021-04-12 17:00:21 +02:00
parent 8bf8e56e01
commit 1a578165f9
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 3 additions and 1 deletions

View file

@ -42,12 +42,14 @@ class PeerTubeSocket {
socket.on('subscribe', ({ videoId }) => {
if (!isIdValid(videoId)) return
/* eslint-disable @typescript-eslint/no-floating-promises */
socket.join(videoId)
})
socket.on('unsubscribe', ({ videoId }) => {
if (!isIdValid(videoId)) return
/* eslint-disable @typescript-eslint/no-floating-promises */
socket.leave(videoId)
})
})

View file

@ -38,7 +38,7 @@ export interface User {
abusesAcceptedCount?: number
abusesCreatedCount?: number
videoCommentsCount? : number
videoCommentsCount?: number
theme: string