Commit 0f23bb40 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Use hashable IdentityKey

parent 10965968
......@@ -356,8 +356,13 @@ class LiteAxolotlStore(AxolotlStore):
def getInactiveSessionsKeys(self, recipientId):
query = '''SELECT record as "record [session_record]" FROM sessions
WHERE active = 0 AND recipient_id = ?'''
result = self._con.execute(query, (recipientId,)).fetchall()
return [row.record.getSessionState().getRemoteIdentityKey() for row in result]
results = self._con.execute(query, (recipientId,)).fetchall()
keys = []
for result in results:
key = result.record.getSessionState().getRemoteIdentityKey()
return keys
def loadPreKey(self, preKeyId):
query = '''SELECT record FROM prekeys WHERE prekey_id = ?'''
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment