mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Added support of permission to manage channel earn.
This commit is contained in:
@@ -1070,7 +1070,8 @@ void ApplyChannelUpdate(
|
||||
| Flag::Location
|
||||
| Flag::ParticipantsHidden
|
||||
| Flag::CanGetStatistics
|
||||
| Flag::ViewAsMessages;
|
||||
| Flag::ViewAsMessages
|
||||
| Flag::CanViewRevenue;
|
||||
channel->setFlags((channel->flags() & ~mask)
|
||||
| (update.is_can_set_username() ? Flag::CanSetUsername : Flag())
|
||||
| (update.is_can_view_participants()
|
||||
@@ -1086,7 +1087,8 @@ void ApplyChannelUpdate(
|
||||
| (update.is_can_view_stats() ? Flag::CanGetStatistics : Flag())
|
||||
| (update.is_view_forum_as_messages()
|
||||
? Flag::ViewAsMessages
|
||||
: Flag()));
|
||||
: Flag())
|
||||
| (update.is_can_view_revenue() ? Flag::CanViewRevenue : Flag()));
|
||||
channel->setUserpicPhoto(update.vchat_photo());
|
||||
if (const auto migratedFrom = update.vmigrated_from_chat_id()) {
|
||||
channel->addFlags(Flag::Megagroup);
|
||||
|
Reference in New Issue
Block a user