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 Franck Nijhof
parent 78351ff7a7
commit 926502b0f1
No known key found for this signature in database
GPG Key ID: AB33ADACE7101952

View File

@ -475,7 +475,7 @@ class MatrixBot:
file_stat = await aiofiles.os.stat(image_path) file_stat = await aiofiles.os.stat(image_path)
_LOGGER.debug("Uploading file from path, %s", 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( response, _ = await self._client.upload(
image_file, image_file,
content_type=mime_type, content_type=mime_type,