Updating the watcher list on video switching

This commit is contained in:
WolverinDEV 2020-08-08 01:06:49 +02:00
parent db36b52574
commit 8223fbe543

View file

@ -66,7 +66,6 @@ class VideoViewer {
this.events.fire("notify_following", { watcherId: undefined }); this.events.fire("notify_following", { watcherId: undefined });
this.events.fire("notify_video", { url: url }); this.events.fire("notify_video", { url: url });
this.notifyWatcherList();
} }
async open() { async open() {
@ -305,6 +304,7 @@ class VideoViewer {
this.plugin.setLocalFollowing(following, { status: "paused" }); this.plugin.setLocalFollowing(following, { status: "paused" });
else else
this.plugin.setLocalWatcherStatus(this.currentVideoUrl, { status: "paused" }); this.plugin.setLocalWatcherStatus(this.currentVideoUrl, { status: "paused" });
this.notifyWatcherList();
} }
} }