mirror of
https://codeberg.org/Mercury-IM/Mercury-IM
synced 2025-09-12 19:59:40 +02: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,
|
AnnouncedOpenPgpContactKey.MODIFICATION_DATE,
|
||||||
OpenPgpKeyFetchDate.FETCH_DATE,
|
OpenPgpKeyFetchDate.FETCH_DATE,
|
||||||
OpenPgpKeyTrust.TRUST)
|
OpenPgpKeyTrust.TRUST)
|
||||||
|
|
||||||
.from(AnnouncedOpenPgpContactKey.class)
|
.from(AnnouncedOpenPgpContactKey.class)
|
||||||
.join(OpenPgpKeyFetchDate.class)
|
.leftJoin(OpenPgpKeyFetchDate.class)
|
||||||
.on(AnnouncedOpenPgpContactKey.ACCOUNT_ID.eq(OpenPgpKeyFetchDate.ACCOUNT_ID)
|
.on(AnnouncedOpenPgpContactKey.ACCOUNT_ID.eq(OpenPgpKeyFetchDate.ACCOUNT_ID)
|
||||||
.and(AnnouncedOpenPgpContactKey.OWNER.eq(OpenPgpKeyFetchDate.OWNER)
|
.and(AnnouncedOpenPgpContactKey.OWNER.eq(OpenPgpKeyFetchDate.OWNER)
|
||||||
.and(AnnouncedOpenPgpContactKey.FINGERPRINT.eq(OpenPgpKeyFetchDate.FINGERPRINT))))
|
.and(AnnouncedOpenPgpContactKey.FINGERPRINT.eq(OpenPgpKeyFetchDate.FINGERPRINT))))
|
||||||
.join(OpenPgpKeyTrust.class)
|
|
||||||
|
.leftJoin(OpenPgpKeyTrust.class)
|
||||||
.on(OpenPgpKeyTrust.ACCOUNT_ID.eq(AnnouncedOpenPgpContactKey.ACCOUNT_ID)
|
.on(OpenPgpKeyTrust.ACCOUNT_ID.eq(AnnouncedOpenPgpContactKey.ACCOUNT_ID)
|
||||||
.and(OpenPgpKeyTrust.OWNER.eq(AnnouncedOpenPgpContactKey.OWNER)
|
.and(OpenPgpKeyTrust.OWNER.eq(AnnouncedOpenPgpContactKey.OWNER)
|
||||||
.and(OpenPgpKeyTrust.FINGERPRINT.eq(AnnouncedOpenPgpContactKey.FINGERPRINT))))
|
.and(OpenPgpKeyTrust.FINGERPRINT.eq(AnnouncedOpenPgpContactKey.FINGERPRINT))))
|
||||||
|
|
||||||
.where(AnnouncedOpenPgpContactKey.ACCOUNT_ID.eq(accountId).and(AnnouncedOpenPgpContactKey.OWNER.eq(owner)))
|
.where(AnnouncedOpenPgpContactKey.ACCOUNT_ID.eq(accountId).and(AnnouncedOpenPgpContactKey.OWNER.eq(owner)))
|
||||||
|
|
||||||
.get().observableResult()
|
.get().observableResult()
|
||||||
.map(ResultDelegate::toList)
|
.map(ResultDelegate::toList)
|
||||||
.map(list -> {
|
.map(list -> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue