This commit is contained in:
Alma Armas 2020-09-12 08:22:45 +00:00
parent 05b7061471
commit ba16cf7090

View file

@ -208,7 +208,7 @@ final class Messages extends VKAPIRequestHandler
{
$this->requireUser();
if($user_id = $this->resolvePeer($user_id, $peer_id))
if(is_null($user_id = $this->resolvePeer($user_id, $peer_id)))
$this->fail(-151, "Chats are not implemented");
$peer = (new USRRepo)->get($user_id);