about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-05-31 15:44:44 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-05-31 15:44:44 +0200
commit2e85f18cd61b358c8c654a90ef64cf80af5a33c6 (patch)
tree00a599cf7b6b5d5b159de8ba626c79f2564a0447 /src/command
parent754c110a34bf608bee3990e5b626203699b879d2 (diff)
downloadprofani-tty-2e85f18cd61b358c8c654a90ef64cf80af5a33c6.tar.gz
Use our omemo sid/fingerprint in qr code
Current clients sid/fingerprint will be shown in following format:
`xmpp:<user@server>?omemo-sid-<numerical-sid>=<omemo-fingerprint-hex-string>`

Fix https://github.com/profanity-im/profanity/issues/1320
Diffstat (limited to 'src/command')
-rw-r--r--src/command/cmd_funcs.c6
1 files changed, 4 insertions, 2 deletions
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");