mirror of https://github.com/M66B/FairEmail.git
Small improvement
This commit is contained in:
parent
322433955e
commit
2bfee5ff6e
|
@ -1473,7 +1473,7 @@ class Core {
|
||||||
if (message == null || !message.content)
|
if (message == null || !message.content)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int size = (int) message.getFile(context).length();
|
long size = message.getFile(context).length();
|
||||||
if (size == 0)
|
if (size == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
@ -325,7 +325,7 @@ public interface DaoMessage {
|
||||||
int setMessageContent(long id, boolean content, String preview, String warning);
|
int setMessageContent(long id, boolean content, String preview, String warning);
|
||||||
|
|
||||||
@Query("UPDATE message SET size = :size WHERE id = :id")
|
@Query("UPDATE message SET size = :size WHERE id = :id")
|
||||||
int setMessageSize(long id, Integer size);
|
int setMessageSize(long id, Long size);
|
||||||
|
|
||||||
@Query("UPDATE message SET headers = :headers WHERE id = :id")
|
@Query("UPDATE message SET headers = :headers WHERE id = :id")
|
||||||
int setMessageHeaders(long id, String headers);
|
int setMessageHeaders(long id, String headers);
|
||||||
|
|
Loading…
Reference in New Issue