Apply fixes from StyleCI

This commit is contained in:
Daniil Gentili 2017-01-08 14:22:21 +00:00 committed by StyleCI Bot
parent 2012a3e1dd
commit 251adef8ce
2 changed files with 6 additions and 3 deletions

View File

@ -38,7 +38,9 @@ trait CallHandler
$this->recv_message(); // This method receives data from the socket, and parses stuff
if (!isset($this->datacenter->outgoing_messages[$int_message_id]['response']) || !isset($this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content'])) { // Checks if I have received the response to the called method, if not continue looping
if ($this->only_updates) $res_count--;
if ($this->only_updates) {
$res_count--;
}
continue;
}
$server_answer = $this->datacenter->incoming_messages[$this->datacenter->outgoing_messages[$int_message_id]['response']]['content']; // continue was not called, so I got a response

View File

@ -183,6 +183,7 @@ trait UpdateHandler
case 'updateEditChannelMessage':
if ($update['message']['_'] == 'messageEmpty') {
\danog\MadelineProto\Logger::log('Got message empty, not saving');
return false;
}
$channel_id = $update['message']['to_id']['channel_id'];
@ -205,13 +206,13 @@ trait UpdateHandler
} else {
$cur_state = &$this->get_channel_state($channel_id, (isset($update['pts']) ? $update['pts'] : 0) - (isset($update['pts_count']) ? $update['pts_count'] : 0));
}
if ($cur_state['sync_loading']) {
\danog\MadelineProto\Logger::log('Sync loading, not handling update');
return false;
}
switch ($update['_']) {
case 'updateChannelTooLong':
$this->get_channel_difference($channel_id);