Apply fixes from StyleCI
This commit is contained in:
parent
7e9383981c
commit
7a9e258de1
|
@ -17,7 +17,6 @@ namespace danog\MadelineProto\MTProtoTools;
|
|||
*/
|
||||
trait ResponseHandler
|
||||
{
|
||||
|
||||
private $bad_msg_error_codes = [
|
||||
16 => 'msg_id too low (most likely, client time is wrong; it would be worthwhile to synchronize it using msg_id notifications and re-send the original message with the “correct” msg_id or wrap it in a container with a new msg_id if the original message had waited too long on the client to be transmitted)',
|
||||
17 => 'msg_id too high (similar to the previous case, the client time has to be synchronized, and the message re-sent with the correct msg_id)',
|
||||
|
@ -42,7 +41,9 @@ trait ResponseHandler
|
|||
64 => ' and content-related response to message already generated',
|
||||
128 => ' and other party knows for a fact that message is already received',
|
||||
];
|
||||
public function send_msgs_state_info($req_msg_id, $msg_ids) {
|
||||
|
||||
public function send_msgs_state_info($req_msg_id, $msg_ids)
|
||||
{
|
||||
$info = '';
|
||||
foreach ($msg_ids as $msg_id) {
|
||||
$cur_info = 0;
|
||||
|
@ -64,6 +65,7 @@ trait ResponseHandler
|
|||
}
|
||||
$this->datacenter->outgoing_messages[$this->object_call('msgs_state_info', ['req_msg_id' => $req_msg_id, 'info' => $info])]['response'] = $req_msg_id;
|
||||
}
|
||||
|
||||
public function handle_messages()
|
||||
{
|
||||
foreach ($this->datacenter->new_incoming as $current_msg_id) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user