2
0
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:
John Preston
2019-06-11 16:31:52 +02:00
parent 3a34b15841
commit aca3ec0ab8
9 changed files with 300 additions and 22 deletions

View File

@@ -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);
}
}