From a02a593f470fc49acea54cdbc46554ecf2d39ed4 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Fri, 28 Jul 2023 23:14:59 +0200 Subject: [PATCH] fix example; this was changed some time ago, see https://docs.webxdc.org/spec.html#sendupdate --- deltachat-ffi/deltachat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 11fd5e369..38b4b97c4 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -1110,7 +1110,7 @@ dc_reactions_t* dc_get_msg_reactions (dc_context_t *context, int msg_id); * * In JS land, that would be mapped to something as: * ``` - * success = window.webxdc.sendUpdate('{"action":"move","src":"A3","dest":"B4"}', 'move A3 B4'); + * success = window.webxdc.sendUpdate('{payload: {"action":"move","src":"A3","dest":"B4"}}', 'move A3 B4'); * ``` * `context` and `msg_id` are not needed in JS as those are unique within a webxdc instance. * See dc_get_webxdc_status_updates() for the receiving counterpart.