Fix sending modified photos with existing bytes.

This commit is contained in:
John Preston 2023-01-19 13:05:23 +04:00
parent 507a064153
commit 7d1cc67019

View file

@ -361,9 +361,8 @@ bool ApplyModifications(PreparedList &list) {
continue;
}
applied = true;
if (!file.path.isEmpty()) {
file.path = QString();
}
file.path = QString();
file.content = QByteArray();
image->data = Editor::ImageModified(
std::move(image->data),
image->modifications);