mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 23:50:58 +01:00
Set first new account/identity primary only
This commit is contained in:
@@ -48,8 +48,8 @@ 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);
|
||||
@Query("SELECT COUNT(*) FROM identity WHERE synchronize")
|
||||
int getSynchronizingIdentityCount();
|
||||
|
||||
@Insert
|
||||
long insertIdentity(EntityIdentity identity);
|
||||
|
||||
Reference in New Issue
Block a user