mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Update API scheme to layer 119. Count replies.
This commit is contained in:
@@ -228,21 +228,6 @@ void UserData::setAccessHash(uint64 accessHash) {
|
||||
}
|
||||
}
|
||||
|
||||
void UserData::setIsBlocked(bool is) {
|
||||
const auto status = is
|
||||
? BlockStatus::Blocked
|
||||
: BlockStatus::NotBlocked;
|
||||
if (_blockStatus != status) {
|
||||
_blockStatus = status;
|
||||
if (is) {
|
||||
_fullFlags.add(MTPDuserFull::Flag::f_blocked);
|
||||
} else {
|
||||
_fullFlags.remove(MTPDuserFull::Flag::f_blocked);
|
||||
}
|
||||
session().changes().peerUpdated(this, UpdateFlag::IsBlocked);
|
||||
}
|
||||
}
|
||||
|
||||
void UserData::setCallsStatus(CallsStatus callsStatus) {
|
||||
if (callsStatus != _callsStatus) {
|
||||
_callsStatus = callsStatus;
|
||||
|
Reference in New Issue
Block a user