fixes 2065: optimisation (#2073)
* fixes 2065: optimisation * Update peertube-socket.ts
This commit is contained in:
parent
d11c28a36b
commit
20ec03846d
1 changed files with 2 additions and 1 deletions
|
@ -39,8 +39,9 @@ class PeerTubeSocket {
|
|||
|
||||
if (!sockets) return
|
||||
|
||||
const notificationMessage = notification.toFormattedJSON()
|
||||
for (const socket of sockets) {
|
||||
socket.emit('new-notification', notification.toFormattedJSON())
|
||||
socket.emit('new-notification', notificationMessage)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue