Allow check_message for non-member channels/SGs

This commit is contained in:
Giuseppe Marino 2020-11-23 23:44:34 +01:00
parent 537ccf2148
commit b99c85a726
No known key found for this signature in database
GPG Key ID: 2BC70C5463357449

View File

@ -3652,7 +3652,8 @@ bool Client::have_message_access(int64 chat_id) const {
case ChatInfo::Type::Supergroup: {
auto supergroup_info = get_supergroup_info(chat_info->supergroup_id);
CHECK(supergroup_info != nullptr);
return is_chat_member(supergroup_info->status);
return true;
// return is_chat_member(supergroup_info->status);
}
case ChatInfo::Type::Unknown:
default: