2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update API scheme on layer 145.

This commit is contained in:
John Preston
2022-08-19 15:38:11 +03:00
parent fa26afaf9a
commit f658cb7e99
6 changed files with 40 additions and 18 deletions

View File

@@ -57,6 +57,14 @@ void UserData::setPhoto(const MTPUserProfilePhoto &photo) {
});
}
void UserData::setEmojiStatus(const MTPEmojiStatus &status) {
setEmojiStatus(status.match([&](const MTPDemojiStatus &data) {
return DocumentId(data.vdocument_id().v);
}, [&](const MTPDemojiStatusEmpty &) {
return DocumentId();
}));
}
void UserData::setEmojiStatus(DocumentId emojiStatusId) {
if (_emojiStatusId != emojiStatusId) {
_emojiStatusId = emojiStatusId;