mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-21 07:38:00 +00:00
Fix sending image from clipboard as file.
This commit is contained in:
parent
cdc295c1d7
commit
571a15bf92
@ -797,7 +797,9 @@ bool DocumentData::saveToCache() const {
|
||||
|| isAnimation()
|
||||
|| isVoiceMessage()
|
||||
|| (type == WallPaperDocument)
|
||||
|| isTheme());
|
||||
|| isTheme()
|
||||
|| (mimeString() == qstr("image/png")
|
||||
&& _filename.startsWith("image_")));
|
||||
}
|
||||
|
||||
void DocumentData::automaticLoadSettingsChanged() {
|
||||
|
@ -2027,6 +2027,7 @@ void OverlayWidget::displayDocument(
|
||||
initThemePreview();
|
||||
} else {
|
||||
_documentMedia->automaticLoad(fileOrigin(), item);
|
||||
_document->saveFromDataSilent();
|
||||
auto &location = _document->location(true);
|
||||
if (location.accessEnable()) {
|
||||
const auto &path = location.name();
|
||||
|
Loading…
Reference in New Issue
Block a user