diff --git a/src/main/java/chat/delta/rpc/Rpc.java b/src/main/java/chat/delta/rpc/Rpc.java index 72761b583..142631e00 100644 --- a/src/main/java/chat/delta/rpc/Rpc.java +++ b/src/main/java/chat/delta/rpc/Rpc.java @@ -509,6 +509,8 @@ public class Rpc { * 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. + *

* chat_id: If set to a group-chat-id, * the Verified-Group-Invite protocol is offered in the QR code; * works for protected groups as well as for normal groups. @@ -1211,12 +1213,19 @@ public class Rpc { * even if there is no concurrent call to [`CommandApi::provide_backup`], * but will fail after 60 seconds to avoid deadlocks. *

+ * @deprecated as of 2026-03; use `create_qr_svg(get_backup_qr())` instead. + *

* Returns the QR code rendered as an SVG image. */ public String getBackupQrSvg(Integer accountId) throws RpcException { return transport.callForResult(new TypeReference(){}, "get_backup_qr_svg", mapper.valueToTree(accountId)); } + /** Renders the given text as a QR code SVG image. */ + public String createQrSvg(String text) throws RpcException { + return transport.callForResult(new TypeReference(){}, "create_qr_svg", mapper.valueToTree(text)); + } + /** * Gets a backup from a remote provider. *

diff --git a/src/main/java/chat/delta/rpc/types/Qr.java b/src/main/java/chat/delta/rpc/types/Qr.java index 9ad484729..f790f0693 100644 --- a/src/main/java/chat/delta/rpc/types/Qr.java +++ b/src/main/java/chat/delta/rpc/types/Qr.java @@ -25,6 +25,8 @@ public abstract class Qr { public String fingerprint; /** Invite number. */ public String invitenumber; + /** Whether the inviter supports the new Securejoin v3 protocol */ + public Boolean is_v3; } /** Ask the user whether to join the group. */ @@ -41,6 +43,8 @@ public abstract class Qr { public String grpname; /** Invite number. */ public String invitenumber; + /** Whether the inviter supports the new Securejoin v3 protocol */ + public Boolean is_v3; } /** Ask the user whether to join the broadcast channel. */ @@ -55,6 +59,8 @@ public abstract class Qr { public String grpid; /** Invite number. */ public String invitenumber; + /** Whether the inviter supports the new Securejoin v3 protocol */ + public Boolean is_v3; /** The user-visible name of this broadcast channel */ public String name; }