2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Moved ChatRestrictionsInfo and ChatAdminRightsInfo to separated file.

This commit is contained in:
23rd
2021-11-21 22:48:08 +03:00
committed by John Preston
parent 30cd3cb681
commit 0eee937e6d
14 changed files with 160 additions and 132 deletions

View File

@@ -774,8 +774,8 @@ void ApplyMigration(
void ApplyChannelUpdate(
not_null<ChannelData*> channel,
const MTPDupdateChatDefaultBannedRights &update) {
channel->setDefaultRestrictions(Data::ChatBannedRightsFlags(
update.vdefault_banned_rights()));
channel->setDefaultRestrictions(ChatRestrictionsInfo(
update.vdefault_banned_rights()).flags);
}
void ApplyChannelUpdate(