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

Display reply background emoji.

This commit is contained in:
John Preston
2023-10-24 11:47:11 +04:00
parent 60fb5fdaf0
commit 9c23de7f1a
6 changed files with 211 additions and 10 deletions

View File

@@ -627,9 +627,9 @@ bool PeerData::changeColorIndex(
: clearColorIndex();
}
bool PeerData::changeBackgroundEmoji(
bool PeerData::changeBackgroundEmojiId(
const tl::conditional<MTPlong> &cloudBackgroundEmoji) {
return changeBackgroundEmoji(cloudBackgroundEmoji
return changeBackgroundEmojiId(cloudBackgroundEmoji
? cloudBackgroundEmoji->v
: DocumentId());
}
@@ -869,7 +869,11 @@ bool PeerData::clearColorIndex() {
return true;
}
bool PeerData::changeBackgroundEmoji(uint64 id) {
DocumentId PeerData::backgroundEmojiId() const {
return _backgroundEmojiId;
}
bool PeerData::changeBackgroundEmojiId(DocumentId id) {
if (_backgroundEmojiId == id) {
return false;
}