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

Fix file references for faved stickers.

This commit is contained in:
John Preston
2018-08-28 14:32:27 +03:00
parent 018abd6aad
commit 51092fb6a9
5 changed files with 33 additions and 11 deletions

View File

@@ -1000,7 +1000,11 @@ ImagePtr DocumentData::getStickerThumb() {
Data::FileOrigin DocumentData::stickerSetOrigin() const {
if (const auto data = sticker()) {
return data->setOrigin();
if (const auto result = data->setOrigin()) {
return result;
} else if (Stickers::IsFaved(this)) {
return Data::FileOriginStickerSet(Stickers::FavedSetId, 0);
}
}
return Data::FileOrigin();
}