mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
auth check
This commit is contained in:
@@ -39,8 +39,10 @@ class HighscoreChat extends Component
|
|||||||
|
|
||||||
public function chatMessageSent()
|
public function chatMessageSent()
|
||||||
{
|
{
|
||||||
$this->messages = cache()->get('highscore_chat_messages', []);
|
if (auth()->check()) {
|
||||||
$this->dispatchBrowserEvent('chat-updated');
|
$this->messages = cache()->get('highscore_chat_messages', []);
|
||||||
|
$this->dispatchBrowserEvent('chat-updated');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendMessage()
|
public function sendMessage()
|
||||||
|
|||||||
Reference in New Issue
Block a user