mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Don't use MTP* for ChannelData flags.
This commit is contained in:
@@ -50,7 +50,7 @@ constexpr auto kPinnedMessageTextLimit = 16;
|
||||
} else if (const auto chat = peer->asChat()) {
|
||||
return !(chat->flags() & ChatDataFlag::CallActive);
|
||||
} else if (const auto channel = peer->asChannel()) {
|
||||
return !(channel->flags() & MTPDchannel::Flag::f_call_active);
|
||||
return !(channel->flags() & ChannelDataFlag::CallActive);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user