This commit is contained in:
Daniil Gentili 2017-07-07 22:56:48 +02:00
commit 4a6335a8b2
4 changed files with 9 additions and 8 deletions

View File

@ -39,8 +39,9 @@ class Logger
self::$has_thread = class_exists('\Thread') && method_exists('\Thread', 'getCurrentThread');
self::$BIG_ENDIAN = (pack('L', 1) === pack('N', 1));
self::$bigint = PHP_INT_SIZE < 8;
if (class_exists('\danog\MadelineProto\VoIP')) \Threaded::extend('\danog\MadelineProto\VoIP');
if (class_exists('\danog\MadelineProto\VoIP')) {
\Threaded::extend('\danog\MadelineProto\VoIP');
}
}
/*

View File

@ -67,7 +67,7 @@ class MTProto extends \Volatile
'messages.requestEncryption' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling secret chats',
'phone.requestCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
'phone.acceptCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
'phone.acceptCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
'phone.confirmCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',
'phone.discardCall' => 'You cannot use this method directly, see https://daniil.it/MadelineProto for more info on handling calls',

View File

@ -170,7 +170,6 @@ trait AuthKeyHandler
\danog\MadelineProto\Logger::log(['Discarding call '.$call.'...'], \danog\MadelineProto\Logger::VERBOSE);
//var_dump(debug_backtrace(0)[0]);
if (isset($this->calls[$call])) {
if (isset($this->calls[$call]['InputPhoneCall'])) {
try {

View File

@ -100,10 +100,11 @@ class pony extends \danog\MadelineProto\VoIP
{
return 0;
}
public function debug($state) {
var_dump("DEBUG $state"); flush();
public function debug($state)
{
var_dump("DEBUG $state");
flush();
}
}