Convert inputEncryptedChat

This commit is contained in:
Daniil Gentili 2019-08-25 20:40:42 +02:00
parent 2c2e33636f
commit 9321f3d0af
2 changed files with 4 additions and 0 deletions

View File

@ -196,6 +196,9 @@ final class Coroutine implements Promise, \ArrayAccess
{
return Tools::call((function () use ($offset, $value) {
$result = yield $this;
if ($offset === null) {
return $result[] = $value;
}
return $result[$offset] = $value;
})());
}

View File

@ -358,6 +358,7 @@ trait PeerHandler
switch ($id['_']) {
case 'updateEncryption':
return $this->get_secret_chat($id['chat']['id']);
case 'inputEncryptedChat':
case 'updateEncryptedChatTyping':
case 'updateEncryptedMessagesRead':
return $this->get_secret_chat($id['chat_id']);