Skip to content

Commit 090f333

Browse files
committed
Add default value for max upload size. Closes #133
1 parent c13e7ef commit 090f333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix/types/media.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class MediaRepoConfig(SerializableAttrs):
2020
https://spec.matrix.org/v1.2/client-server-api/#get_matrixmediav3config
2121
"""
2222

23-
upload_size: int = field(json="m.upload.size")
23+
upload_size: int = field(default=50 * 1024 * 1024, json="m.upload.size")
2424

2525

2626
@dataclass

0 commit comments

Comments
 (0)