Added zip warnings

This commit is contained in:
M66B 2022-03-11 08:14:08 +01:00
parent 5ab676b54c
commit ea7b7f481b
2 changed files with 7 additions and 1 deletions

View File

@ -102,6 +102,12 @@ public interface DaoAttachment {
" AND (NOT (error IS :error) OR progress IS NOT NULL OR NOT (available IS 0))")
void setError(long id, String error);
@Query("UPDATE attachment" +
" SET error = :error" +
" WHERE id = :id" +
" AND NOT (error IS :error)")
void setWarning(long id, String error);
@Query("UPDATE attachment" +
" SET type = :type" +
" WHERE id = :id" +

View File

@ -3441,7 +3441,7 @@ public class MessageHelper {
}
} catch (Throwable ex) {
Log.e(ex);
db.attachment().setError(local.id, Log.formatThrowable(ex));
db.attachment().setWarning(local.id, Log.formatThrowable(ex));
}
}
}