Fix missing yield
This commit is contained in:
parent
2b4398bee1
commit
c643cd063a
@ -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']) {
|
||||||
|
Loading…
Reference in New Issue
Block a user