Fix fingerprint observe method

This commit is contained in:
Paul Schaub 2020-07-13 15:54:11 +02:00
parent e63632ee0e
commit c14cc304b1
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
1 changed files with 6 additions and 2 deletions

View File

@ -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 -> {