mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Improve sticker file reference refreshing.
This commit is contained in:
@@ -1071,6 +1071,15 @@ void DocumentData::refreshFileReference(const QByteArray &value) {
|
||||
_fileReference = value;
|
||||
}
|
||||
|
||||
void DocumentData::refreshStickerThumbFileReference() {
|
||||
if (const auto data = sticker()) {
|
||||
if (thumb->loading()) {
|
||||
data->loc.refreshFileReference(
|
||||
thumb->location().fileReference());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
QString DocumentData::filename() const {
|
||||
return _filename;
|
||||
}
|
||||
|
Reference in New Issue
Block a user