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; return $object;
} }
$id = $this->API->getId($object); $id = $this->API->getId($object);
if (yield $this->db[$id]) { $dbObject = yield $this->db[$id];
$new = \array_merge($object, $this->db[$id]); if ($dbObject) {
$new = \array_merge($object, $dbObject);
$new['_'] .= 'FromMessage'; $new['_'] .= 'FromMessage';
$new['peer'] = (yield from $this->API->getInfo($new['peer']))['InputPeer']; $new['peer'] = (yield from $this->API->getInfo($new['peer']))['InputPeer'];
if ($new['peer']['min']) { if ($new['peer']['min']) {