mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Support separate message type group restrictions.
This commit is contained in:
@@ -293,11 +293,6 @@ bool UserData::isInaccessible() const {
|
||||
return flags() & UserDataFlag::Deleted;
|
||||
}
|
||||
|
||||
bool UserData::canWrite() const {
|
||||
// Duplicated in Data::CanWriteValue().
|
||||
return !isInaccessible() && !isRepliesChat();
|
||||
}
|
||||
|
||||
bool UserData::applyMinPhoto() const {
|
||||
return !(flags() & UserDataFlag::DiscardMinPhoto);
|
||||
}
|
||||
@@ -314,10 +309,6 @@ bool UserData::canReceiveGifts() const {
|
||||
return flags() & UserDataFlag::CanReceiveGifts;
|
||||
}
|
||||
|
||||
bool UserData::canReceiveVoices() const {
|
||||
return !(flags() & UserDataFlag::VoiceMessagesForbidden);
|
||||
}
|
||||
|
||||
bool UserData::canShareThisContactFast() const {
|
||||
return !_phone.isEmpty();
|
||||
}
|
||||
|
Reference in New Issue
Block a user