diff --git a/app/Events/LiveStream/BanUser.php b/app/Events/LiveStream/BanUser.php index c9fc73628..c60f4101e 100644 --- a/app/Events/LiveStream/BanUser.php +++ b/app/Events/LiveStream/BanUser.php @@ -36,7 +36,7 @@ class BanUser implements ShouldBroadcast */ public function broadcastOn() { - return new PrivateChannel('live.chat.' . $this->livestream->profile_id); + return new Channel('live.chat.' . $this->livestream->profile_id); } public function broadcastAs() diff --git a/app/Events/LiveStream/DeleteChatComment.php b/app/Events/LiveStream/DeleteChatComment.php index c5987fb6b..c437a8bea 100644 --- a/app/Events/LiveStream/DeleteChatComment.php +++ b/app/Events/LiveStream/DeleteChatComment.php @@ -36,7 +36,7 @@ class DeleteChatComment implements ShouldBroadcast */ public function broadcastOn() { - return new PrivateChannel('live.chat.' . $this->livestream->profile_id); + return new Channel('live.chat.' . $this->livestream->profile_id); } public function broadcastAs() diff --git a/app/Events/LiveStream/NewChatComment.php b/app/Events/LiveStream/NewChatComment.php index 1652a2366..e58c27dde 100644 --- a/app/Events/LiveStream/NewChatComment.php +++ b/app/Events/LiveStream/NewChatComment.php @@ -36,7 +36,7 @@ class NewChatComment implements ShouldBroadcast */ public function broadcastOn() { - return new PrivateChannel('live.chat.' . $this->livestream->profile_id); + return new Channel('live.chat.' . $this->livestream->profile_id); } public function broadcastAs() diff --git a/app/Events/LiveStream/PinChatMessage.php b/app/Events/LiveStream/PinChatMessage.php index 1f0a624a7..4c2f213ec 100644 --- a/app/Events/LiveStream/PinChatMessage.php +++ b/app/Events/LiveStream/PinChatMessage.php @@ -36,7 +36,7 @@ class PinChatMessage implements ShouldBroadcast */ public function broadcastOn() { - return new PrivateChannel('live.chat.' . $this->livestream->profile_id); + return new Channel('live.chat.' . $this->livestream->profile_id); } public function broadcastAs() diff --git a/app/Events/LiveStream/StreamEnd.php b/app/Events/LiveStream/StreamEnd.php index f5416e4c5..acfd883a3 100644 --- a/app/Events/LiveStream/StreamEnd.php +++ b/app/Events/LiveStream/StreamEnd.php @@ -33,7 +33,7 @@ class StreamEnd implements ShouldBroadcast */ public function broadcastOn() { - return new PrivateChannel('live.chat.' . $this->id); + return new Channel('live.chat.' . $this->id); } public function broadcastAs() diff --git a/app/Events/LiveStream/StreamStart.php b/app/Events/LiveStream/StreamStart.php index 54d9f1ff8..761c0d913 100644 --- a/app/Events/LiveStream/StreamStart.php +++ b/app/Events/LiveStream/StreamStart.php @@ -33,7 +33,7 @@ class StreamStart implements ShouldBroadcast */ public function broadcastOn() { - return new PrivateChannel('live.chat.' . $this->id); + return new Channel('live.chat.' . $this->id); } public function broadcastAs() diff --git a/app/Events/LiveStream/UnpinChatMessage.php b/app/Events/LiveStream/UnpinChatMessage.php index 4a0d41243..13301225e 100644 --- a/app/Events/LiveStream/UnpinChatMessage.php +++ b/app/Events/LiveStream/UnpinChatMessage.php @@ -36,7 +36,7 @@ class UnpinChatMessage implements ShouldBroadcast */ public function broadcastOn() { - return new PrivateChannel('live.chat.' . $this->livestream->profile_id); + return new Channel('live.chat.' . $this->livestream->profile_id); } public function broadcastAs() diff --git a/app/Http/Controllers/LiveStreamController.php b/app/Http/Controllers/LiveStreamController.php index ceba1a7a1..1aacb4ab3 100644 --- a/app/Http/Controllers/LiveStreamController.php +++ b/app/Http/Controllers/LiveStreamController.php @@ -268,7 +268,7 @@ class LiveStreamController extends Controller $stream = LiveStream::whereProfileId($pid)->firstOrFail(); $payload = $request->input('message'); - broadcast(new DeleteChatComment($stream, $payload))->toOthers(); + DeleteChatComment::dispatch($stream, $payload); $payload = json_encode($payload, JSON_UNESCAPED_SLASHES); LiveStreamService::deleteComment($stream->profile_id, $payload); return; diff --git a/public/js/live-player.js b/public/js/live-player.js index 457cfcfda..72ef56dc4 100644 Binary files a/public/js/live-player.js and b/public/js/live-player.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index d451d96cf..5cd12e8b1 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ