Fixed saving drafts with selected identity

This commit is contained in:
M66B
2018-08-28 16:51:22 +00:00
parent d97261796a
commit 2b5dd74721
2 changed files with 6 additions and 1 deletions

View File

@@ -48,6 +48,9 @@ public interface DaoIdentity {
@Query("SELECT * FROM identity WHERE id = :id")
LiveData<EntityIdentity> liveIdentity(long id);
@Query("SELECT * FROM identity WHERE account = :account AND `primary`")
EntityIdentity getPrimaryIdentity(long account);
@Insert
long insertIdentity(EntityIdentity identity);