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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user