Skip to content

Commit

Permalink
Lowercase matrix_id
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-russell committed Dec 22, 2023
1 parent d4a16c3 commit ffca23a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fractal/matrix/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ async def disable_ratelimiting(self, matrix_id: str) -> None:

async def generate_registration_token(self) -> str:
"""
Args:
matrix_id (str): The matrix id to disable rate limiting for.
"""
Expand Down Expand Up @@ -207,6 +205,7 @@ async def register_with_token(
device_name (str): The device name to register. Defaults to "".
disable_ratelimiting (bool): Whether or not to disable rate limiting for the user. Defaults to True.
"""
matrix_id = matrix_id.lower()
username = parse_matrix_id(matrix_id)[0]
access_token = self.access_token
res = await super().register_with_token(
Expand Down

0 comments on commit ffca23a

Please sign in to comment.