ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix socket io messages angular changes
Chocobozzz15feebd97ab5
diff --git a/client/e2e/src/po/player.po.ts b/client/e2e/src/po/player.po.tsindex 1bba11171e..48e61dfea0 100644--- a/client/e2e/src/po/player.po.ts+++ b/client/e2e/src/po/player.po.ts@@ -17,7 +17,7 @@ export class PlayerPage {}waitUntilPlayerWrapper () {- const elem = element(by.css('#video-wrapper'))+ const elem = element(by.css('#placeholder-preview'))return browser.wait(browser.ExpectedConditions.presenceOf(elem))}diff --git a/client/src/app/core/notification/peertube-socket.service.ts b/client/src/app/core/notification/peertube-socket.service.tsindex 2f17fd7091..7e1c43364a 100644--- a/client/src/app/core/notification/peertube-socket.service.ts+++ b/client/src/app/core/notification/peertube-socket.service.ts@@ -53,13 +53,14 @@ export class PeerTubeSocket {await this.importIOIfNeeded()+ // Prevent protractor issues https://github.com/angular/angular/issues/11853this.ngZone.runOutsideAngular(() => {this.notificationSocket = this.io(environment.apiUrl + '/user-notifications', {query: { accessToken: this.auth.getAccessToken() }})-- this.notificationSocket.on('new-notification', (n: UserNotificationServer) => this.dispatchNotificationEvent('new', n))})++ this.notificationSocket.on('new-notification', (n: UserNotificationServer) => this.dispatchNotificationEvent('new', n))}private async initLiveVideosSocket () {@@ -67,12 +68,13 @@ export class PeerTubeSocket {await this.importIOIfNeeded()+ // Prevent protractor issues https://github.com/angular/angular/issues/11853this.ngZone.runOutsideAngular(() => {this.liveVideosSocket = this.io(environment.apiUrl + '/live-videos')-- const type: LiveVideoEventType = 'state-change'- this.liveVideosSocket.on(type, (payload: LiveVideoEventPayload) => this.dispatchLiveVideoEvent(type, payload))})++ const type: LiveVideoEventType = 'state-change'+ this.liveVideosSocket.on(type, (payload: LiveVideoEventPayload) => this.dispatchLiveVideoEvent(type, payload))}private async importIOIfNeeded () {