Skip to content

Commit 9b4198a

Browse files
committed
Fix type error in download_thumbnail
1 parent 3e22e61 commit 9b4198a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mautrix/client/api/modules/media_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ async def download_thumbnail(
199199
width: int | None = None,
200200
height: int | None = None,
201201
resize_method: Literal["crop", "scale"] = None,
202-
allow_remote: bool = True,
202+
allow_remote: bool | None = None,
203203
timeout_ms: int | None = None,
204204
):
205205
"""
@@ -232,7 +232,7 @@ async def download_thumbnail(
232232
if resize_method is not None:
233233
query_params["method"] = resize_method
234234
if allow_remote is not None:
235-
query_params["allow_remote"] = allow_remote
235+
query_params["allow_remote"] = str(allow_remote).lower()
236236
if timeout_ms is not None:
237237
query_params["timeout_ms"] = timeout_ms
238238
req_id = self.api.log_download_request(url, query_params)

0 commit comments

Comments
 (0)