mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2024-11-05 11:37:14 +01:00
Treat self as a member in deactivated basic groups.
This commit is contained in:
parent
202ddaffab
commit
a133545d4b
@ -8003,6 +8003,9 @@ void Client::add_group(std::unordered_map<int32, GroupInfo> &groups, object_ptr<
|
|||||||
group_info->kicked = group->status_->get_id() == td_api::chatMemberStatusBanned::ID;
|
group_info->kicked = group->status_->get_id() == td_api::chatMemberStatusBanned::ID;
|
||||||
group_info->is_active = group->is_active_;
|
group_info->is_active = group->is_active_;
|
||||||
group_info->upgraded_to_supergroup_id = group->upgraded_to_supergroup_id_;
|
group_info->upgraded_to_supergroup_id = group->upgraded_to_supergroup_id_;
|
||||||
|
if (!group_info->left && !group_info->kicked && group_info->member_count == 0) {
|
||||||
|
group_info->member_count = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const Client::GroupInfo *Client::get_group_info(int32 group_id) const {
|
const Client::GroupInfo *Client::get_group_info(int32 group_id) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user