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:
@@ -669,6 +669,17 @@ bool PeerData::changeBackgroundEmojiId(
|
||||
: DocumentId());
|
||||
}
|
||||
|
||||
bool PeerData::changeColor(
|
||||
const tl::conditional<MTPPeerColor> &cloudColor) {
|
||||
const auto changed1 = cloudColor
|
||||
? changeColorIndex(cloudColor->data().vcolor().v)
|
||||
: clearColorIndex();
|
||||
const auto changed2 = changeBackgroundEmojiId(cloudColor
|
||||
? cloudColor->data().vbackground_emoji_id().v
|
||||
: DocumentId());
|
||||
return changed1 || changed2;
|
||||
}
|
||||
|
||||
void PeerData::fillNames() {
|
||||
_nameWords.clear();
|
||||
_nameFirstLetters.clear();
|
||||
|
Reference in New Issue
Block a user