Skip check only if not supergroup

This commit is contained in:
Giuseppe Marino 2020-11-24 09:22:16 +01:00
parent b99c85a726
commit 55ee7aed4a
No known key found for this signature in database
GPG Key ID: 2BC70C5463357449
1 changed files with 1 additions and 1 deletions

View File

@ -3652,7 +3652,7 @@ 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 true;
return !supergroup_info->is_supergroup || is_chat_member(supergroup_info->status);
// return is_chat_member(supergroup_info->status);
}
case ChatInfo::Type::Unknown: