Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 29ae04a

Browse files
committed
Remove unneeded type constraints on 3rd party protocol lookup responses
1 parent 3f58fc8 commit 29ae04a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

changelog.d/9361.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug causing Synapse to impose the wrong type constraints on fields when processing responses from appservices to `/_matrix/app/v1/thirdparty/user/{protocol}`.

synapse/appservice/api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,6 @@ def _is_valid_3pe_result(r, field):
7676
fields = r["fields"]
7777
if not isinstance(fields, dict):
7878
return False
79-
for k in fields.keys():
80-
if not isinstance(fields[k], str):
81-
return False
8279

8380
return True
8481

0 commit comments

Comments
 (0)