From 79993f3011b404c10e0a93bc8b601bbe885e0e69 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 17 Nov 2024 01:33:07 +0100 Subject: [PATCH] simpler naming, matching better the density of the other items - and avoids snake_case and camelCase confusion :) --- deltachat-ffi/deltachat.h | 2 +- src/webxdc.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 612110171..7d050cedd 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -1157,7 +1157,7 @@ uint32_t dc_send_videochat_invitation (dc_context_t* context, uint32_t chat_id); * @param json program-readable data, this is create in JS land as: * - `payload`: any JS object or primitive. * - `info`: optional informational message. will be shown in chat an may be added as system notification. - * - `notifyUsers`: optional array of user `addr` that should be notified eg. by a sound. + * - `notify`: optional array of user `addr` that should be notified eg. by a sound. * note that still all users get the update payload and the `info` message shown in a chat. * - `document`: optional document name. shown eg. in title bar. * - `summary`: optional summary. shown beside app icon. diff --git a/src/webxdc.rs b/src/webxdc.rs index f0c4bdd3c..798619e0d 100644 --- a/src/webxdc.rs +++ b/src/webxdc.rs @@ -323,7 +323,7 @@ impl Context { ) .await?; } else { - // TODO: change add_info_msg_with_cmd() to emit DC_EVENT_INCOMING_MSG if update.notifyUsers refers to us + // TODO: change add_info_msg_with_cmd() to emit DC_EVENT_INCOMING_MSG if update.notify refers to us chat::add_info_msg_with_cmd( self, instance.chat_id,