Skip to content

Commit

Permalink
Force-lowercase localpart in CommunityHelper.create
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 26, 2020
1 parent 717d80a commit 8a6d2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mautrix/bridge/_community.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, az: AppService) -> None:
async def create(self, localpart: str) -> Tuple[CommunityID, bool]:
try:
resp = await self.az.intent.api.request(Method.POST, Path.create_group, {
"localpart": localpart
"localpart": localpart.lower(),
})
return CommunityID(resp["group_id"]), True
except MatrixStandardRequestError as e:
Expand Down

0 comments on commit 8a6d2d9

Please sign in to comment.