2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Implement suggested profile photo message.

This commit is contained in:
John Preston
2022-12-09 21:35:45 +04:00
parent 5fe9c93cb6
commit 48cf0a4382
24 changed files with 768 additions and 356 deletions

View File

@@ -298,6 +298,10 @@ bool UserData::applyMinPhoto() const {
return !(flags() & UserDataFlag::DiscardMinPhoto);
}
bool UserData::hasPersonalPhoto() const {
return (flags() & UserDataFlag::PersonalPhoto);
}
bool UserData::canAddContact() const {
return canShareThisContact() && !isContact();
}