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-22 12:16:39 +04:00
parent 6a87fef851
commit 4b5e2582d9
7 changed files with 48 additions and 36 deletions

View File

@@ -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();