This commit is contained in:
Daniil Gentili 2019-09-13 18:39:56 +02:00
parent d968477125
commit e6fc0d3cb8

View File

@ -127,7 +127,7 @@ trait PeerHandler
return;
}
if (!isset($this->chats[$bot_api_id]) || ($this->chats[$bot_api_id] !== $chat && !$chat['min'])) {
if (!isset($this->chats[$bot_api_id]) || ($this->chats[$bot_api_id] !== $chat && !($chat['min'] ?? false))) {
$this->logger->logger("Updated chat $bot_api_id", \danog\MadelineProto\Logger::ULTRA_VERBOSE);
$this->chats[$bot_api_id] = $chat;