Explorar o código

Reduce Matrix message size limit to account for encryption

The limit is used for deciding whether to unpack Signal's large message text files
Tulir Asokan %!s(int64=3) %!d(string=hai) anos
pai
achega
acadae9f8f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mautrix_signal/portal.py

+ 1 - 1
mautrix_signal/portal.py

@@ -118,7 +118,7 @@ except ImportError:
 StateBridge = EventType.find("m.bridge", EventType.Class.STATE)
 StateHalfShotBridge = EventType.find("uk.half-shot.bridge", EventType.Class.STATE)
 ChatInfo = Union[Group, GroupV2, GroupV2ID, Profile, Address]
-MAX_MATRIX_MESSAGE_SIZE = 60000
+MAX_MATRIX_MESSAGE_SIZE = 30000
 BEEPER_LINK_PREVIEWS_KEY = "com.beeper.linkpreviews"
 BEEPER_IMAGE_ENCRYPTION_KEY = "beeper:image:encryption"