This commit is contained in:
Benjamin Takats
2023-01-19 18:24:56 +01:00
parent 67cc94a14c
commit 345c3d51ce

View File

@@ -49,7 +49,7 @@ class HighscoreChat extends Component
$newMessages = collect($this->messages) $newMessages = collect($this->messages)
->push([ ->push([
'fromId' => auth()->id(), 'fromId' => auth()->id(),
'fromName' => str(auth()->user()->name)->initials(), 'fromName' => str(auth()->user()->name)->limit(2),
'userImg' => str(auth()->user()->profile_photo_url)->replace('background=EBF4FF', 'background=F7931A'), 'userImg' => str(auth()->user()->profile_photo_url)->replace('background=EBF4FF', 'background=F7931A'),
'message' => $this->myNewMessage, 'message' => $this->myNewMessage,
'time' => now()->asDateTime(), 'time' => now()->asDateTime(),