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

Commit

Permalink
Merge pull request #9361 from matrix-org/babolivier/third_party_valid…
Browse files Browse the repository at this point in the history
…ation

Remove unneeded type constraints on 3rd party protocol lookup responses
  • Loading branch information
babolivier committed Feb 9, 2021
2 parents 5f716fa + 29ae04a commit fb0e14e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/9361.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +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}`.
3 changes: 0 additions & 3 deletions synapse/appservice/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ def _is_valid_3pe_result(r, field):
fields = r["fields"]
if not isinstance(fields, dict):
return False
for k in fields.keys():
if not isinstance(fields[k], str):
return False

return True

Expand Down

0 comments on commit fb0e14e

Please sign in to comment.