2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme on layer 140.

This commit is contained in:
John Preston
2022-04-06 16:27:23 +04:00
parent 7b307a9e54
commit d9f6a5206e
9 changed files with 25 additions and 34 deletions

View File

@@ -637,7 +637,6 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
using Flag = ChatDataFlag;
const auto flagsMask = Flag::Left
| Flag::Kicked
| Flag::Creator
| Flag::Deactivated
| Flag::Forbidden
@@ -645,7 +644,6 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
| Flag::CallNotEmpty
| Flag::NoForwards;
const auto flagsSet = (data.is_left() ? Flag::Left : Flag())
| (data.is_kicked() ? Flag::Kicked : Flag())
| (data.is_creator() ? Flag::Creator : Flag())
| (data.is_deactivated() ? Flag::Deactivated : Flag())
| (data.is_call_active() ? Flag::CallActive : Flag())