From 2e85f18cd61b358c8c654a90ef64cf80af5a33c6 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 31 May 2022 15:44:44 +0200 Subject: Use our omemo sid/fingerprint in qr code Current clients sid/fingerprint will be shown in following format: `xmpp:?omemo-sid-=` Fix https://github.com/profanity-im/profanity/issues/1320 --- src/command/cmd_funcs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/command') diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 1a4d4bf1..57381831 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9049,8 +9049,10 @@ cmd_omemo_qrcode(ProfWin* window, const char* const command, gchar** args) return TRUE; } - char* fingerprint = omemo_own_fingerprint(TRUE); - cons_show_omemo_qrcode(fingerprint); + char* qrstr = omemo_qrcode_str(); + cons_show_qrcode(qrstr); + free(qrstr); + return TRUE; #else cons_show("This version of Profanity has not been built with OMEMO support enabled"); -- cgit 1.4.1-2-gfad0