mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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