Skip to content

Commit

Permalink
Fix threepids list comprehension in api.user_modify
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Nov 13, 2023
1 parent 382664d commit 9c70f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synadm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def user_modify(self, user_id, password, display_name, threepid,
data.update({"displayname": display_name})
if threepid:
data.update({"threepids": [
{"medium": k, "address": i} for k, i in dict(threepid).items()
{"medium": m, "address": a} for m, a in threepid
]})
if avatar_url:
data.update({"avatar_url": avatar_url})
Expand Down

0 comments on commit 9c70f88

Please sign in to comment.