mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Simplify pin_messages/manage_topics logic.
This commit is contained in:
@@ -528,10 +528,6 @@ bool ChannelData::anyoneCanAddMembers() const {
|
||||
return !(defaultRestrictions() & Restriction::AddParticipants);
|
||||
}
|
||||
|
||||
bool ChannelData::anyoneCanPinMessages() const {
|
||||
return !(defaultRestrictions() & Restriction::PinMessages);
|
||||
}
|
||||
|
||||
bool ChannelData::hiddenPreHistory() const {
|
||||
return (flags() & Flag::PreHistoryHidden);
|
||||
}
|
||||
|
Reference in New Issue
Block a user