Added optional send-to-self share target

This commit is contained in:
M66B
2023-06-08 08:55:37 +02:00
parent 7f62d73284
commit de0b082ea5
13 changed files with 303 additions and 1 deletions

View File

@@ -86,6 +86,13 @@ public interface DaoIdentity {
@Query("SELECT * FROM identity WHERE id = :id")
EntityIdentity getIdentity(long id);
@Query("SELECT identity.* FROM identity" +
" JOIN account ON account.id = identity.account" +
" JOIN folder ON folder.account = identity.account AND folder.type = '" + EntityFolder.DRAFTS + "'" +
" WHERE account.`primary` AND account.synchronize" +
" AND identity.`primary` AND identity.synchronize")
EntityIdentity getPrimaryIdentity();
@Query("SELECT * FROM identity WHERE uuid = :uuid")
EntityIdentity getIdentityByUUID(String uuid);