Try ignoring missing min info

This commit is contained in:
Daniil Gentili 2019-09-13 21:57:01 +02:00
parent c2126b524b
commit e479bf6bf3

View File

@ -242,7 +242,8 @@ class MinDatabase implements TLCallback
$new['_'] .= 'FromMessage'; $new['_'] .= 'FromMessage';
$new['peer'] = (yield $this->API->get_info_async($new['peer']))['InputPeer']; $new['peer'] = (yield $this->API->get_info_async($new['peer']))['InputPeer'];
if ($new['peer']['min']) { if ($new['peer']['min']) {
throw new Exception('Peer not found in internal min peer database'); $this->API->logger->logger("Don't have origin peer subinfo with min peer $id, this may fail");
return $object;
} }
return $new; return $new;
} else { } else {