Skip to content

api: add create_qr_svg to jsonrpc#7949

Merged
nicodh merged 1 commit intomainfrom
add-create-qr-svg-to-jsonrpc
Mar 4, 2026
Merged

api: add create_qr_svg to jsonrpc#7949
nicodh merged 1 commit intomainfrom
add-create-qr-svg-to-jsonrpc

Conversation

@nicodh
Copy link
Contributor

@nicodh nicodh commented Mar 4, 2026

Needed for deltachat/deltachat-desktop#5969 and followup to #6090

Tested with desktop

/// if `checkQr()` returns `askVerifyContact` or `askVerifyGroup`
/// an out-of-band-verification can be joined using `secure_join()`
///
/// @deprecated as of 2026-03; use create_qr_svg(get_chat_securejoin_qr_code()) instead.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rustdoc does not care about doxygen commands

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is that since these will be moved to the typescript comments there they will be recognized by IDEs & editors in clients.

   /**
    * @deprecated as of 2026-03; use create_qr_svg(get_chat_securejoin_qr_code()) instead.
    * return format: `[code, svg]`
    * 
    */
    getChatSecurejoinQrCodeSvg(accountId: T.U32, chatId: (T.U32 | null)): Promise<[string, string]>;

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the jsonrpc module that would make sense imo. Maybe even rewrite the existing deprecated comments

@nicodh nicodh merged commit 964bbad into main Mar 4, 2026
30 checks passed
@nicodh nicodh deleted the add-create-qr-svg-to-jsonrpc branch March 4, 2026 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants