2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Update API scheme on layer 166.

This commit is contained in:
John Preston
2023-10-18 11:29:42 +04:00
parent 12fab565a4
commit 16d18b437d
7 changed files with 149 additions and 86 deletions

View File

@@ -705,7 +705,7 @@ not_null<UserData*> Session::processUser(const MTPUser &data) {
if (canShareThisContact != result->canShareThisContactFast()) {
flags |= UpdateFlag::CanShareContact;
}
if (result->changeColorIndex(uint8(data.vcolor().v))) {
if (result->changeColorIndex(data.vcolor())) {
flags |= UpdateFlag::Color;
}
});
@@ -982,7 +982,7 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
if (wasCallNotEmpty != Data::ChannelHasActiveCall(channel)) {
flags |= UpdateFlag::GroupCall;
}
if (result->changeColorIndex(uint8(data.vcolor().v))) {
if (result->changeColorIndex(data.vcolor())) {
flags |= UpdateFlag::Color;
}
}, [&](const MTPDchannelForbidden &data) {