mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow restricting forwards in groups / channels.
This commit is contained in:
@@ -470,6 +470,10 @@ bool ChannelData::canWrite() const {
|
||||
&& !amRestricted(Restriction::SendMessages)));
|
||||
}
|
||||
|
||||
bool ChannelData::allowsForwarding() const {
|
||||
return !(flags() & Flag::NoForwards);
|
||||
}
|
||||
|
||||
bool ChannelData::canViewMembers() const {
|
||||
return flags() & Flag::CanViewParticipants;
|
||||
}
|
||||
|
Reference in New Issue
Block a user