2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme on layer 167.

This commit is contained in:
John Preston
2023-11-24 13:01:44 +04:00
parent b5b5c28ac5
commit 23a0413113
3 changed files with 23 additions and 14 deletions

View File

@@ -672,10 +672,10 @@ bool PeerData::changeBackgroundEmojiId(
bool PeerData::changeColor(
const tl::conditional<MTPPeerColor> &cloudColor) {
const auto changed1 = cloudColor
? changeColorIndex(cloudColor->data().vcolor().v)
? changeColorIndex(cloudColor->data().vcolor())
: clearColorIndex();
const auto changed2 = changeBackgroundEmojiId(cloudColor
? cloudColor->data().vbackground_emoji_id().v
? cloudColor->data().vbackground_emoji_id().value_or_empty()
: DocumentId());
return changed1 || changed2;
}