2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Show toast on share attempt to premium required.

This commit is contained in:
John Preston
2024-01-18 10:39:00 +04:00
parent eda7118df9
commit f3f660a180
12 changed files with 255 additions and 64 deletions

View File

@@ -402,6 +402,10 @@ bool UserData::requirePremiumToWriteKnown() const {
return (flags() & UserDataFlag::RequirePremiumToWriteKnown);
}
bool UserData::canSendIgnoreRequirePremium() const {
return !isInaccessible() && !isRepliesChat();
}
bool UserData::readDatesPrivate() const {
return (flags() & UserDataFlag::ReadDatesPrivate);
}