summary refs log tree commit diff
path: root/synapse/media/media_repository.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2023-10-06 10:12:43 -0400
committerGitHub <noreply@github.com>2023-10-06 10:12:43 -0400
commit7615e2bf48d7bed3da7235d60f84a3c847ac78f5 (patch)
treeefcc6168b58427d1725175c27484a069670b7bad /synapse/media/media_repository.py
parentDrop unused tables & unneeded access token ID for events. (#16268) (diff)
downloadsynapse-7615e2bf48d7bed3da7235d60f84a3c847ac78f5.tar.xz
Return ThumbnailInfo in more places (#16438)
Improves type hints by using concrete types instead of
dictionaries.
Diffstat (limited to 'synapse/media/media_repository.py')
-rw-r--r--synapse/media/media_repository.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/media/media_repository.py b/synapse/media/media_repository.py
index d11c2ff4ee..7fd46901f7 100644
--- a/synapse/media/media_repository.py
+++ b/synapse/media/media_repository.py
@@ -624,6 +624,7 @@ class MediaRepository:
                         height=t_height,
                         method=t_method,
                         type=t_type,
+                        length=t_byte_source.tell(),
                     ),
                 )
 
@@ -694,6 +695,7 @@ class MediaRepository:
                         height=t_height,
                         method=t_method,
                         type=t_type,
+                        length=t_byte_source.tell(),
                     ),
                 )
 
@@ -839,6 +841,7 @@ class MediaRepository:
                         height=t_height,
                         method=t_method,
                         type=t_type,
+                        length=t_byte_source.tell(),
                     ),
                 )