Added zip warnings

pull/207/head
M66B 4 years ago
parent 5ab676b54c
commit ea7b7f481b

@ -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" +

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

Loading…
Cancel
Save