@@ -4,7 +4,7 @@ use super::*;
4
4
use crate :: chat:: { Chat , create_broadcast, create_group_chat, create_group_ex} ;
5
5
use crate :: mimeparser:: SystemMessage ;
6
6
use crate :: qr:: check_qr;
7
- use crate :: securejoin:: { get_securejoin_qr, join_securejoin, join_securejoin_with_source } ;
7
+ use crate :: securejoin:: { get_securejoin_qr, join_securejoin, join_securejoin_with_ux_info } ;
8
8
use crate :: test_utils:: { TestContext , TestContextManager , get_chat_msg} ;
9
9
use crate :: tools:: SystemTime ;
10
10
use pretty_assertions:: assert_eq;
@@ -287,11 +287,12 @@ async fn test_statistics_securejoin_sources() -> Result<()> {
287
287
expected. unknown += 1 ;
288
288
check_statistics ( alice, & expected) . await ;
289
289
290
- join_securejoin_with_source ( alice, & qr, Some ( SecurejoinSource :: Clipboard as u32 ) , None ) . await ?;
290
+ join_securejoin_with_ux_info ( alice, & qr, Some ( SecurejoinSource :: Clipboard as u32 ) , None )
291
+ . await ?;
291
292
expected. clipboard += 1 ;
292
293
check_statistics ( alice, & expected) . await ;
293
294
294
- join_securejoin_with_source (
295
+ join_securejoin_with_ux_info (
295
296
alice,
296
297
& qr,
297
298
Some ( SecurejoinSource :: ExternalLink as u32 ) ,
@@ -301,7 +302,7 @@ async fn test_statistics_securejoin_sources() -> Result<()> {
301
302
expected. external_link += 1 ;
302
303
check_statistics ( alice, & expected) . await ;
303
304
304
- join_securejoin_with_source (
305
+ join_securejoin_with_ux_info (
305
306
alice,
306
307
& qr,
307
308
Some ( SecurejoinSource :: InternalLink as u32 ) ,
@@ -311,20 +312,22 @@ async fn test_statistics_securejoin_sources() -> Result<()> {
311
312
expected. internal_link += 1 ;
312
313
check_statistics ( alice, & expected) . await ;
313
314
314
- join_securejoin_with_source ( alice, & qr, Some ( SecurejoinSource :: ImageLoaded as u32 ) , None )
315
+ join_securejoin_with_ux_info ( alice, & qr, Some ( SecurejoinSource :: ImageLoaded as u32 ) , None )
315
316
. await ?;
316
317
expected. image_loaded += 1 ;
317
318
check_statistics ( alice, & expected) . await ;
318
319
319
- join_securejoin_with_source ( alice, & qr, Some ( SecurejoinSource :: Scan as u32 ) , None ) . await ?;
320
+ join_securejoin_with_ux_info ( alice, & qr, Some ( SecurejoinSource :: Scan as u32 ) , None ) . await ?;
320
321
expected. scan += 1 ;
321
322
check_statistics ( alice, & expected) . await ;
322
323
323
- join_securejoin_with_source ( alice, & qr, Some ( SecurejoinSource :: Clipboard as u32 ) , None ) . await ?;
324
+ join_securejoin_with_ux_info ( alice, & qr, Some ( SecurejoinSource :: Clipboard as u32 ) , None )
325
+ . await ?;
324
326
expected. clipboard += 1 ;
325
327
check_statistics ( alice, & expected) . await ;
326
328
327
- join_securejoin_with_source ( alice, & qr, Some ( SecurejoinSource :: Clipboard as u32 ) , None ) . await ?;
329
+ join_securejoin_with_ux_info ( alice, & qr, Some ( SecurejoinSource :: Clipboard as u32 ) , None )
330
+ . await ?;
328
331
expected. clipboard += 1 ;
329
332
check_statistics ( alice, & expected) . await ;
330
333
@@ -367,7 +370,7 @@ async fn test_statistics_securejoin_uipaths() -> Result<()> {
367
370
expected. other += 1 ;
368
371
check_statistics ( alice, & expected) . await ;
369
372
370
- join_securejoin_with_source (
373
+ join_securejoin_with_ux_info (
371
374
alice,
372
375
& qr,
373
376
Some ( 0 ) ,
@@ -377,7 +380,7 @@ async fn test_statistics_securejoin_uipaths() -> Result<()> {
377
380
expected. new_contact += 1 ;
378
381
check_statistics ( alice, & expected) . await ;
379
382
380
- join_securejoin_with_source (
383
+ join_securejoin_with_ux_info (
381
384
alice,
382
385
& qr,
383
386
Some ( 0 ) ,
@@ -387,7 +390,8 @@ async fn test_statistics_securejoin_uipaths() -> Result<()> {
387
390
expected. new_contact += 1 ;
388
391
check_statistics ( alice, & expected) . await ;
389
392
390
- join_securejoin_with_source ( alice, & qr, Some ( 0 ) , Some ( SecurejoinUIPath :: QrIcon as u32 ) ) . await ?;
393
+ join_securejoin_with_ux_info ( alice, & qr, Some ( 0 ) , Some ( SecurejoinUIPath :: QrIcon as u32 ) )
394
+ . await ?;
391
395
expected. qr_icon += 1 ;
392
396
check_statistics ( alice, & expected) . await ;
393
397
0 commit comments