1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 17:27:00 +00:00

Fixed warnings

This commit is contained in:
M66B 2018-08-04 15:52:03 +00:00
parent b447b4ab8a
commit 11aaac4d4b
3 changed files with 3 additions and 3 deletions

View file

@ -86,5 +86,5 @@ public interface DaoFolder {
void updateFolder(EntityFolder folder);
@Query("DELETE FROM folder WHERE account= :account AND name = :name")
int deleteFolder(Long account, String name);
void deleteFolder(Long account, String name);
}

View file

@ -96,7 +96,7 @@ public interface DaoMessage {
void deleteMessage(long folder, long uid);
@Query("DELETE FROM message WHERE folder = :folder")
int deleteMessages(long folder);
void deleteMessages(long folder);
@Query("DELETE FROM message WHERE folder = :folder AND received < :received AND NOT uid IS NULL")
int deleteMessagesBefore(long folder, long received);

View file

@ -957,7 +957,7 @@ public class ServiceSynchronize extends LifecycleService {
for (EntityAttachment attachment : helper.getAttachments()) {
Log.i(Helper.TAG, "attachment name=" + attachment.name + " type=" + attachment.type);
attachment.message = message.id;
db.attachment().insertAttachment(attachment);
attachment.id = db.attachment().insertAttachment(attachment);
}
} else if (message.seen != seen) {