Skip to content
Snippets Groups Projects
Unverified Commit fb0e14ee authored by Brendan Abolivier's avatar Brendan Abolivier Committed by GitHub
Browse files

Merge pull request #9361 from matrix-org/babolivier/third_party_validation

Remove unneeded type constraints on 3rd party protocol lookup responses
parents 5f716fa7 29ae04af
No related branches found
No related tags found
No related merge requests found
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}`.
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment