We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4122b5b commit 09c9e6dCopy full SHA for 09c9e6d
changelog.d/17250.misc
@@ -0,0 +1 @@
1
+Stop logging errors when receiving invalid User IDs in key querys requests.
synapse/handlers/e2e_keys.py
@@ -149,6 +149,11 @@ async def query_devices(
149
remote_queries = {}
150
151
for user_id, device_ids in device_keys_query.items():
152
+ if not UserID.is_valid(user_id):
153
+ # Ignore invalid user IDs, which is the same behaviour as if
154
+ # the user existed but had no keys.
155
+ continue
156
+
157
# we use UserID.from_string to catch invalid user ids
158
if self.is_mine(UserID.from_string(user_id)):
159
local_query[user_id] = device_ids
0 commit comments