1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:59:02 +01:00

Fix missing yield

This commit is contained in:
Alexander Pankratov 2020-09-17 19:14:41 +03:00
parent 2b4398bee1
commit c643cd063a

View File

@ -182,8 +182,9 @@ class MinDatabase implements TLCallback
return $object;
}
$id = $this->API->getId($object);
if (yield $this->db[$id]) {
$new = \array_merge($object, $this->db[$id]);
$dbObject = yield $this->db[$id];
if ($dbObject) {
$new = \array_merge($object, $dbObject);
$new['_'] .= 'FromMessage';
$new['peer'] = (yield from $this->API->getInfo($new['peer']))['InputPeer'];
if ($new['peer']['min']) {