about summary refs log tree commit diff stats
path: root/tests/unittests
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 /tests/unittests
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 'tests/unittests')
-rw-r--r--tests/unittests/omemo/stub_omemo.c6
-rw-r--r--tests/unittests/ui/stub_ui.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/unittests/omemo/stub_omemo.c b/tests/unittests/omemo/stub_omemo.c
index f7c60190..0336e1a3 100644
--- a/tests/unittests/omemo/stub_omemo.c
+++ b/tests/unittests/omemo/stub_omemo.c
@@ -120,3 +120,9 @@ omemo_device_id()
 {
     return 123;
 }
+
+char*
+omemo_qrcode_str()
+{
+    return NULL;
+}
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index a1bb7d61..37323ba7 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -930,7 +930,7 @@ cons_show_disco_info(const char* from, GSList* identities, GSList* features)
 }
 
 void
-cons_show_omemo_qrcode(const char* const text)
+cons_show_qrcode(const char* const text)
 {
 }