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
+4
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();
}