Automatically enable store sent

pull/153/head
M66B 6 years ago
parent 91c2c2a01a
commit 886e87198d

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

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

Loading…
Cancel
Save