auth check

This commit is contained in:
Benjamin Takats
2023-01-19 19:02:54 +01:00
parent 022924e20f
commit 919ba1e89b

View File

@@ -39,8 +39,10 @@ class HighscoreChat extends Component
public function chatMessageSent()
{
$this->messages = cache()->get('highscore_chat_messages', []);
$this->dispatchBrowserEvent('chat-updated');
if (auth()->check()) {
$this->messages = cache()->get('highscore_chat_messages', []);
$this->dispatchBrowserEvent('chat-updated');
}
}
public function sendMessage()