Fix get_dialogs (closes #460)

This commit is contained in:
Daniil Gentili 2018-07-01 11:58:39 +02:00
parent 6947d1b034
commit 935ae7009a
2 changed files with 4 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit 4462f6f0c4391a3a1c6ce4f2b5cb02081a635a88
Subproject commit da3160351138eec872ec2f840f6bd51c99fde17e

View File

@ -20,6 +20,9 @@ trait DialogHandler
if ($force || !isset($this->dialog_params['offset_date']) || is_null($this->dialog_params['offset_date']) || !isset($this->dialog_params['offset_id']) || is_null($this->dialog_params['offset_id']) || !isset($this->dialog_params['offset_peer']) || is_null($this->dialog_params['offset_peer']) || !isset($this->dialog_params['count']) || is_null($this->dialog_params['count'])) {
$this->dialog_params = ['limit' => 100, 'offset_date' => 0, 'offset_id' => 0, 'offset_peer' => ['_' => 'inputPeerEmpty'], 'count' => 0];
}
if (!isset($this->dialog_params['hash'])) {
$this->dialog_params['hash'] = 0;
}
$this->updates_state['sync_loading'] = true;
$res = ['dialogs' => [0], 'count' => 1];
$datacenter = $this->datacenter->curdc;