Module webxdc

Source
Expand description

ยงHandle webxdc messages.

Internally status updates are stored in the msgs_status_updates SQL table. msgs_status_updates contains the following columns:

  • id - status update serial number
  • msg_id - ID of the message in the msgs table
  • update_item - JSON representation of the status update
  • uid - โ€œidโ€ field of the update, used for deduplication

Status updates are scheduled for sending by adding a record to smtp_status_updates_table SQL table. smtp_status_updates contains the following columns:

  • msg_id - ID of the message in the msgs table
  • first_serial - serial number of the first status update to send
  • last_serial - serial number of the last status update to send
  • descr - not used, set to empty string

Modulesยง

integration ๐Ÿ”’
maps_integration ๐Ÿ”’
Maps Webxdc Integration.

Structsยง

StatusUpdateItem
Update items as sent on the wire and as stored in the database.
StatusUpdateItemAndSerial ๐Ÿ”’
Update items as passed to the UIs.
StatusUpdateSerial
Status Update ID.
StatusUpdates ๐Ÿ”’
WebxdcInfo
Parsed information from WebxdcManifest and fallbacks.
WebxdcManifest
Raw information read from manifest.toml

Constantsยง

BODY_DESCR ๐Ÿ”’
Text shown to classic e-mail users in the visible e-mail body.
STATUS_UPDATE_SIZE_MAX ๐Ÿ”’
Status update JSON size soft limit.
WEBXDC_API_VERSION ๐Ÿ”’
The current API version. If min_api in manifest.toml is set to a larger value, the Webxdcโ€™s index.html is replaced by an error message. In the future, that may be useful to avoid new Webxdc being loaded on old Delta Chats.
WEBXDC_DEFAULT_ICON ๐Ÿ”’
WEBXDC_SUFFIX
Suffix used to recognize webxdc files.

Functionsยง

find_zip_entry ๐Ÿ”’
Returns an entry index and a reference.
get_blob ๐Ÿ”’
parse_webxdc_manifest ๐Ÿ”’