Skip to main content

Module download

Module download 

Source
Expand description

ยงDownload large messages manually.

Modulesยง

post_msg_metadata ๐Ÿ”’

Enumsยง

DownloadState
Download state of the message.

Constantsยง

PRE_MSG_ATTACHMENT_SIZE_THRESHOLD ๐Ÿ”’
From this point onward outgoing messages are considered large and get a Pre-Message, which announces the Post-Message. This is only about sending so we can modify it any time. Current value is a bit less than the minimum auto-download setting from the UIs (which is 160 KiB).
PRE_MSG_SIZE_WARNING_THRESHOLD ๐Ÿ”’
Max size for pre messages. A warning is emitted when this is exceeded.

Functionsยง

available_post_msgs_contains_rfc724_mid ๐Ÿ”’
delete_from_available_post_msgs ๐Ÿ”’
delete_from_downloads ๐Ÿ”’
download_known_post_messages_without_pre_message ๐Ÿ”’
Downloads known post-messages without pre-messages in order to guard against lost pre-messages.
download_msg ๐Ÿ”’
Actually downloads a message partially downloaded before if the message is available on the session transport, in which case returns Some. If the message is available on another transport, returns None.
download_msgs ๐Ÿ”’
msg_is_downloaded_for ๐Ÿ”’
set_state_to_failure ๐Ÿ”’