mDM_edit
Edit a direct message you sent — replace its body by message_id (pass the conversation's to so it can be located). NOTE: end-to-end-encrypted messages CANNOT be edited (the ratchet is forward-only) — mDM_edit refuses them and you should mDM_delete + mDM_send a replacement instead. Only legacy non-E2EE messages are editable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient identity id of the conversation the message is in (needed to locate it and verify the edit won't break E2EE). | |
| new_text | Yes | Replacement message body (UTF-8). Max 64 KB. | |
| message_id | Yes | Id of the message to edit (from mDM_list). | |
| thread_label | No | Optional thread label within the conversation with this contact. Defaults to the contact's main thread. mosadd USP: multiple threads per contact. |