Allow image send with read-only access (matrix notify) (#144819)

This commit is contained in:
TheOneValen 2025-05-21 17:18:34 +02:00 committed by GitHub
parent 743abadfcf
commit 1dbe1955eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -475,7 +475,7 @@ class MatrixBot:
file_stat = await aiofiles.os.stat(image_path)
_LOGGER.debug("Uploading file from path, %s", image_path)
async with aiofiles.open(image_path, "r+b") as image_file:
async with aiofiles.open(image_path, "rb") as image_file:
response, _ = await self._client.upload(
image_file,
content_type=mime_type,