update pusher

This commit is contained in:
2024-05-14 13:22:16 +07:00
parent cd9fff3265
commit c07241397f
2 changed files with 6 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ class ChatMessageSent implements ShouldBroadcast
public function __construct($message)
{
$this->message = $message;
$this->dontBroadcastToCurrentUser();
}
/**
@@ -33,7 +34,7 @@ class ChatMessageSent implements ShouldBroadcast
*/
public function broadcastOn()
{
return new PrivateChannel('chat');
return new PrivateChannel('chat'. $this->message->channel_id);
}
}