Small improvement

This commit is contained in:
M66B 2019-04-05 12:00:28 +02:00
parent 322433955e
commit 2bfee5ff6e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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