Fix self Creator status in channels.
GitOrigin-RevId: 883cb8a08cb01e8534001e1f2936f60398ede681
This commit is contained in:
parent
187ebc603c
commit
952cfd0cba
@ -13739,7 +13739,9 @@ void ContactsManager::on_chat_update(telegram_api::channel &channel, const char
|
||||
bool is_creator = (channel.flags_ & CHANNEL_FLAG_USER_IS_CREATOR) != 0;
|
||||
|
||||
if (is_creator) {
|
||||
return DialogParticipantStatus::Creator(!has_left, false, string());
|
||||
bool is_anonymous = channel.admin_rights_ != nullptr &&
|
||||
(channel.admin_rights_->flags_ & telegram_api::chatAdminRights::ANONYMOUS_MASK) != 0;
|
||||
return DialogParticipantStatus::Creator(!has_left, is_anonymous, string());
|
||||
} else if (channel.admin_rights_ != nullptr) {
|
||||
return get_dialog_participant_status(false, std::move(channel.admin_rights_), string());
|
||||
} else if (channel.banned_rights_ != nullptr) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user