mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2024-11-14 03:52:04 +01:00
Fix fingerprint observe method
This commit is contained in:
parent
e63632ee0e
commit
c14cc304b1
1 changed files with 6 additions and 2 deletions
|
@ -281,16 +281,20 @@ public class RxOpenPgpRepository implements OpenPgpRepository {
|
|||
AnnouncedOpenPgpContactKey.MODIFICATION_DATE,
|
||||
OpenPgpKeyFetchDate.FETCH_DATE,
|
||||
OpenPgpKeyTrust.TRUST)
|
||||
|
||||
.from(AnnouncedOpenPgpContactKey.class)
|
||||
.join(OpenPgpKeyFetchDate.class)
|
||||
.leftJoin(OpenPgpKeyFetchDate.class)
|
||||
.on(AnnouncedOpenPgpContactKey.ACCOUNT_ID.eq(OpenPgpKeyFetchDate.ACCOUNT_ID)
|
||||
.and(AnnouncedOpenPgpContactKey.OWNER.eq(OpenPgpKeyFetchDate.OWNER)
|
||||
.and(AnnouncedOpenPgpContactKey.FINGERPRINT.eq(OpenPgpKeyFetchDate.FINGERPRINT))))
|
||||
.join(OpenPgpKeyTrust.class)
|
||||
|
||||
.leftJoin(OpenPgpKeyTrust.class)
|
||||
.on(OpenPgpKeyTrust.ACCOUNT_ID.eq(AnnouncedOpenPgpContactKey.ACCOUNT_ID)
|
||||
.and(OpenPgpKeyTrust.OWNER.eq(AnnouncedOpenPgpContactKey.OWNER)
|
||||
.and(OpenPgpKeyTrust.FINGERPRINT.eq(AnnouncedOpenPgpContactKey.FINGERPRINT))))
|
||||
|
||||
.where(AnnouncedOpenPgpContactKey.ACCOUNT_ID.eq(accountId).and(AnnouncedOpenPgpContactKey.OWNER.eq(owner)))
|
||||
|
||||
.get().observableResult()
|
||||
.map(ResultDelegate::toList)
|
||||
.map(list -> {
|
||||
|
|
Loading…
Reference in a new issue