Automatically enable store sent

This commit is contained in:
M66B 2019-03-25 17:24:52 +00:00
parent 91c2c2a01a
commit 886e87198d
2 changed files with 5 additions and 0 deletions

View File

@ -941,6 +941,8 @@ class Core {
orphan.folder = folder.id;
db.message().updateMessage(orphan);
EntityOperation.queue(context, db, orphan, EntityOperation.ADD);
db.identity().setIdentityStoreSent(orphan.identity, true);
}
}

View File

@ -77,6 +77,9 @@ public interface DaoIdentity {
@Query("UPDATE identity SET password = :password WHERE id = :id")
int setIdentityPassword(long id, String password);
@Query("UPDATE identity SET store_sent = :store_sent WHERE id = :id")
int setIdentityStoreSent(long id, boolean store_sent);
@Query("UPDATE identity SET error = :error WHERE id = :id")
int setIdentityError(long id, String error);