mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Support 18+/restrictions for messages.
This commit is contained in:
@@ -544,12 +544,9 @@ auto ChannelData::unavailableReasons() const
|
||||
return _unavailableReasons;
|
||||
}
|
||||
|
||||
void ChannelData::setUnavailableReasons(
|
||||
void ChannelData::setUnavailableReasonsList(
|
||||
std::vector<Data::UnavailableReason> &&reasons) {
|
||||
if (_unavailableReasons != reasons) {
|
||||
_unavailableReasons = std::move(reasons);
|
||||
session().changes().peerUpdated(this, UpdateFlag::UnavailableReason);
|
||||
}
|
||||
_unavailableReasons = std::move(reasons);
|
||||
}
|
||||
|
||||
void ChannelData::setAvailableMinId(MsgId availableMinId) {
|
||||
|
Reference in New Issue
Block a user