Fixed bugs
This commit is contained in:
parent
251adef8ce
commit
bb15d89124
@ -45,7 +45,7 @@ trait CallHandler
|
||||
}
|
||||
$server_answer = $this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content']; // continue was not called, so I got a response
|
||||
if ($heavy) {
|
||||
unset($this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]);
|
||||
$this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content'] = [];
|
||||
}
|
||||
} catch (\danog\MadelineProto\Exception $e) {
|
||||
\danog\MadelineProto\Logger::log('An error getting response of method '.$method.': '.$e->getMessage().' in '.basename($e->getFile(), '.php').' on line '.$e->getLine().'. Retrying...');
|
||||
@ -112,7 +112,7 @@ trait CallHandler
|
||||
continue;
|
||||
} finally {
|
||||
if ($heavy) {
|
||||
unset($this->datacenter->outgoing_messages[$int_message_id]);
|
||||
$this->datacenter->outgoing_messages[$int_message_id]['args'] = [];
|
||||
}
|
||||
}
|
||||
if ($server_answer == null) {
|
||||
|
@ -44,16 +44,17 @@ trait PeerHandler
|
||||
switch ($chat['_']) {
|
||||
case 'chat':
|
||||
case 'chatEmpty':
|
||||
case 'chatForbidden':
|
||||
if (!isset($this->chats[-$chat['id']]) || $this->chats[-$chat['id']]['chat'] !== $chat) {
|
||||
//$this->method_call('messages.getFullChat', ['chat_id' => $chat['id']]);
|
||||
$this->chats[-$chat['id']] = ['_' => 'chatFull', 'chat' => $chat];
|
||||
$this->should_serialize = true;
|
||||
}
|
||||
|
||||
case 'chatForbidden':
|
||||
case 'channelEmpty':
|
||||
break;
|
||||
case 'channel':
|
||||
case 'channelForbidden':
|
||||
if (!isset($this->chats[(int) ('-100'.$chat['id'])]) || $this->chats[(int) ('-100'.$chat['id'])]['channel'] !== $chat) {
|
||||
$this->chats[(int) ('-100'.$chat['id'])] = ['_' => 'channelFull', 'channel' => $chat];
|
||||
$this->should_serialize = true;
|
||||
|
Loading…
Reference in New Issue
Block a user