Files
eatvio-infra/app/Http/Livewire/Chat/LastUsers.php
2023-05-22 09:52:08 +00:00

26 lines
491 B
PHP

<?php
namespace App\Http\Livewire\Chat;
use Livewire\Component;
class LastUsers extends Component
{
public $lastChatUsers;
public $activeUserId;
public $curUserId;
public $chanId;
public function render()
{
return view('livewire.chat.last-users');
}
public function switchTo($id)
{
$this->activeUserId = $id;
$this->emitTo('chat.message-window', 'updateRecipientId', $id);
redirect()->route('chat.show', $id);
}
}