mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Support adaptive forum userpic rounding radius.
This commit is contained in:
@@ -228,22 +228,27 @@ void UserData::setAccessHash(uint64 accessHash) {
|
||||
if (accessHash == kInaccessibleAccessHashOld) {
|
||||
_accessHash = 0;
|
||||
_flags.add(Flag::Deleted);
|
||||
invalidateEmptyUserpic();
|
||||
} else {
|
||||
_accessHash = accessHash;
|
||||
}
|
||||
}
|
||||
|
||||
void UserData::setFlags(UserDataFlags which) {
|
||||
if ((which & UserDataFlag::Deleted)
|
||||
!= (flags() & UserDataFlag::Deleted)) {
|
||||
invalidateEmptyUserpic();
|
||||
}
|
||||
_flags.set((flags() & UserDataFlag::Self)
|
||||
| (which & ~UserDataFlag::Self));
|
||||
}
|
||||
|
||||
void UserData::addFlags(UserDataFlags which) {
|
||||
_flags.add(which & ~UserDataFlag::Self);
|
||||
setFlags(flags() | which);
|
||||
}
|
||||
|
||||
void UserData::removeFlags(UserDataFlags which) {
|
||||
_flags.remove(which & ~UserDataFlag::Self);
|
||||
setFlags(flags() & ~which);
|
||||
}
|
||||
|
||||
bool UserData::isVerified() const {
|
||||
|
Reference in New Issue
Block a user