mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Added API support of channel flag for channel statistics.
This commit is contained in:
parent
c9eb9a3ee0
commit
c71f35778d
1 changed files with 4 additions and 2 deletions
|
@ -997,7 +997,8 @@ void ApplyChannelUpdate(
|
|||
| Flag::PreHistoryHidden
|
||||
| Flag::AntiSpam
|
||||
| Flag::Location
|
||||
| Flag::ParticipantsHidden;
|
||||
| Flag::ParticipantsHidden
|
||||
| Flag::CanGetStatistics;
|
||||
channel->setFlags((channel->flags() & ~mask)
|
||||
| (update.is_can_set_username() ? Flag::CanSetUsername : Flag())
|
||||
| (update.is_can_view_participants()
|
||||
|
@ -1009,7 +1010,8 @@ void ApplyChannelUpdate(
|
|||
| (update.vlocation() ? Flag::Location : Flag())
|
||||
| (update.is_participants_hidden()
|
||||
? Flag::ParticipantsHidden
|
||||
: Flag()));
|
||||
: Flag())
|
||||
| (update.is_can_view_stats() ? Flag::CanGetStatistics : Flag()));
|
||||
channel->setUserpicPhoto(update.vchat_photo());
|
||||
if (const auto migratedFrom = update.vmigrated_from_chat_id()) {
|
||||
channel->addFlags(Flag::Megagroup);
|
||||
|
|
Loading…
Add table
Reference in a new issue