Small improvement

pull/153/head
M66B 6 years ago
parent 322433955e
commit 2bfee5ff6e

@ -1473,7 +1473,7 @@ class Core {
if (message == null || !message.content)
return;
int size = (int) message.getFile(context).length();
long size = message.getFile(context).length();
if (size == 0)
return;

@ -325,7 +325,7 @@ public interface DaoMessage {
int setMessageContent(long id, boolean content, String preview, String warning);
@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")
int setMessageHeaders(long id, String headers);

Loading…
Cancel
Save