2
0
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:
John Preston
2018-09-26 21:08:11 +03:00
parent 131f7ec5bb
commit a7772b922c
6 changed files with 25 additions and 12 deletions

View File

@@ -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;
}