From d4115e720df0e2977f66b85ca43de7a4c50345ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?bi=C3=B8rn?= Date: Tue, 15 Sep 2026 16:19:07 +0200 Subject: [PATCH] docs: add hint about how to reset an invitation (#8160) this PR adds a hint about how to reset a QR code. the API is as-is, just now, a refactoring here is also unwanted. the jsonrpc documentation needs to improved in general, this is known, and also not done by this PR closes #7985 --------- Co-authored-by: adb --- deltachat-ffi/deltachat.h | 2 ++ deltachat-jsonrpc/src/api.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/deltachat-ffi/deltachat.h b/deltachat-ffi/deltachat.h index 844e09d37..524b489e3 100644 --- a/deltachat-ffi/deltachat.h +++ b/deltachat-ffi/deltachat.h @@ -2576,6 +2576,8 @@ dc_lot_t* dc_check_qr (dc_context_t* context, const char* * so that the QR code is useful also without Delta Chat being installed * or can be passed to contacts through other channels. * + * To reset invitations, pass the link to dc_set_config_from_qr(). + * * @memberof dc_context_t * @param context The context object. * @param chat_id If set to a group-chat-id, diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index 6c66fafd5..5eac8df35 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -826,6 +826,8 @@ impl CommandApi { /// Get QR code text that will offer a [SecureJoin](https://securejoin.delta.chat/) invitation. /// + /// To reset invitations, pass the link to `set_config_from_qr()`. + /// /// If `chat_id` is a group chat ID, SecureJoin QR code for the group is returned. /// If `chat_id` is unset, setup contact QR code is returned. async fn get_chat_securejoin_qr_code(