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:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user