mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Implement block + clear from ContactStatus bar.
This commit is contained in:
@@ -235,6 +235,11 @@ void UserData::setIsBlocked(bool is) {
|
||||
: BlockStatus::NotBlocked;
|
||||
if (_blockStatus != status) {
|
||||
_blockStatus = status;
|
||||
if (is) {
|
||||
_fullFlags.add(MTPDuserFull::Flag::f_blocked);
|
||||
} else {
|
||||
_fullFlags.remove(MTPDuserFull::Flag::f_blocked);
|
||||
}
|
||||
Notify::peerUpdatedDelayed(this, UpdateFlag::UserIsBlocked);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user