[omemo] KeyDialog: Show last seen timestamp

This commit is contained in:
Philipp Hörist
2019-02-22 23:09:31 +01:00
parent d94d1550b3
commit 9362c59250
3 changed files with 32 additions and 13 deletions

View File

@@ -479,14 +479,20 @@ class LiteAxolotlStore(AxolotlStore):
def getFingerprints(self, jid):
query = '''SELECT recipient_id as "recipient_id [jid]",
public_key as "public_key [pk]", trust FROM identities
public_key as "public_key [pk]",
trust,
timestamp
FROM identities
WHERE recipient_id = ? ORDER BY trust ASC'''
return self._con.execute(query, (jid,)).fetchall()
def getMucFingerprints(self, jids):
query = '''
SELECT recipient_id as "recipient_id [jid]",
public_key as "public_key [pk]", trust FROM identities
public_key as "public_key [pk]",
trust,
timestamp
FROM identities
WHERE recipient_id IN ({}) ORDER BY trust ASC
'''.format(', '.join(['?'] * len(jids)))