2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 07:05:13 +00:00

Fix sending image from clipboard as file.

This commit is contained in:
John Preston
2020-06-16 19:31:50 +04:00
parent cdc295c1d7
commit 571a15bf92
2 changed files with 4 additions and 1 deletions

View File

@@ -797,7 +797,9 @@ bool DocumentData::saveToCache() const {
|| isAnimation()
|| isVoiceMessage()
|| (type == WallPaperDocument)
|| isTheme());
|| isTheme()
|| (mimeString() == qstr("image/png")
&& _filename.startsWith("image_")));
}
void DocumentData::automaticLoadSettingsChanged() {