1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 03:31:17 +01:00

Layer fix

This commit is contained in:
Daniil Gentili 2021-12-03 20:26:45 +01:00
parent 873035657e
commit 76264ce65f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 2 deletions

View File

@ -386,7 +386,7 @@ trait PeerHandler
case 'user':
return $id['id'];
case 'userFull':
return $id['user']['id'];
return $id['id'];
case 'inputPeerUser':
case 'inputUser':
case 'peerUser':

View File

@ -250,7 +250,7 @@ class ReferenceDatabase implements TLCallback
$origin['max_id'] = $data['profile_photo']['id'];
$origin['offset'] = -1;
$origin['limit'] = 1;
$origin['user_id'] = $data['user']['id'];
$origin['user_id'] = $data['id'];
break;
case 'chatFull':
case 'chat':