mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
Allow users to send messages to themselves using VK API
This commit is contained in:
parent
a608ebc1a7
commit
c87d4b0bc7
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ final class Messages extends VKAPIRequestHandler
|
|||
if(!$peer)
|
||||
$this->fail(936, "There is no peer with this id");
|
||||
|
||||
if($peer->getSubscriptionStatus($this->getUser()) !== 3)
|
||||
if($this->getUser()->getId() !== $peer->getId() && $peer->getSubscriptionStatus($this->getUser()) !== 3)
|
||||
$this->fail(945, "This chat is disabled because of privacy settings");
|
||||
|
||||
# Finally we get to send a message!
|
||||
|
|
Loading…
Reference in a new issue