From ba16cf7090056988ff9208dc59efc77c3fd505ff Mon Sep 17 00:00:00 2001 From: Alma Armas Date: Sat, 12 Sep 2020 08:22:45 +0000 Subject: [PATCH] Fix typo --- VKAPI/Handlers/Messages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VKAPI/Handlers/Messages.php b/VKAPI/Handlers/Messages.php index 2b76b85d..12255667 100644 --- a/VKAPI/Handlers/Messages.php +++ b/VKAPI/Handlers/Messages.php @@ -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);