Update livestream events

pull/3562/head
Daniel Supernault 2022-06-27 21:52:07 -06:00
rodzic aa57e1e593
commit 4bd9e12f00
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
10 zmienionych plików z 10 dodań i 10 usunięć

Wyświetl plik

@ -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()

Wyświetl plik

@ -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()

Wyświetl plik

@ -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()

Wyświetl plik

@ -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()

Wyświetl plik

@ -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()

Wyświetl plik

@ -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()

Wyświetl plik

@ -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()

Wyświetl plik

@ -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;

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -19,7 +19,7 @@
"/js/admin.js": "/js/admin.js?id=fd88b96423314b41cc763a0714554a04",
"/js/rempro.js": "/js/rempro.js?id=03810f85fc35fb2238c518a076fe6b34",
"/js/rempos.js": "/js/rempos.js?id=390eecb73b0e650f058df325985db938",
"/js/live-player.js": "/js/live-player.js?id=bd4d4400dd681c4a484aa021c6048342",
"/js/live-player.js": "/js/live-player.js?id=dd54a729ca39d7eebff1bdb6ef53e236",
"/js/spa.js": "/js/spa.js?id=c6c3766979c5b2c2aa6d872cf5ae8bda",
"/js/stories.js": "/js/stories.js?id=814a25875cac8987d85c801dcb453114",
"/js/installer.js": "/js/installer.js?id=d7b03f6c0bb707bec8ff9f81d328ac4a",