mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 00:34:47 -04:00
Implement device key caching over federation
This commit is contained in:
parent
51e9fe36e4
commit
c974116f19
13 changed files with 381 additions and 57 deletions
|
@ -52,11 +52,11 @@ class EndToEndKeyStore(SQLBaseStore):
|
|||
query_params = []
|
||||
|
||||
for (user_id, device_id) in query_list:
|
||||
query_clause = "k.user_id = ?"
|
||||
query_clause = "user_id = ?"
|
||||
query_params.append(user_id)
|
||||
|
||||
if device_id:
|
||||
query_clause += " AND k.device_id = ?"
|
||||
query_clause += " AND device_id = ?"
|
||||
query_params.append(device_id)
|
||||
|
||||
query_clauses.append(query_clause)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue