@@ -4,7 +4,7 @@ use super::*;
44use crate :: chat:: { Chat , create_broadcast, create_group_chat, create_group_ex} ;
55use crate :: mimeparser:: SystemMessage ;
66use 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 } ;
88use crate :: test_utils:: { TestContext , TestContextManager , get_chat_msg} ;
99use crate :: tools:: SystemTime ;
1010use pretty_assertions:: assert_eq;
@@ -287,11 +287,12 @@ async fn test_statistics_securejoin_sources() -> Result<()> {
287287 expected. unknown += 1 ;
288288 check_statistics ( alice, & expected) . await ;
289289
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 ?;
291292 expected. clipboard += 1 ;
292293 check_statistics ( alice, & expected) . await ;
293294
294- join_securejoin_with_source (
295+ join_securejoin_with_ux_info (
295296 alice,
296297 & qr,
297298 Some ( SecurejoinSource :: ExternalLink as u32 ) ,
@@ -301,7 +302,7 @@ async fn test_statistics_securejoin_sources() -> Result<()> {
301302 expected. external_link += 1 ;
302303 check_statistics ( alice, & expected) . await ;
303304
304- join_securejoin_with_source (
305+ join_securejoin_with_ux_info (
305306 alice,
306307 & qr,
307308 Some ( SecurejoinSource :: InternalLink as u32 ) ,
@@ -311,20 +312,22 @@ async fn test_statistics_securejoin_sources() -> Result<()> {
311312 expected. internal_link += 1 ;
312313 check_statistics ( alice, & expected) . await ;
313314
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 )
315316 . await ?;
316317 expected. image_loaded += 1 ;
317318 check_statistics ( alice, & expected) . await ;
318319
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 ?;
320321 expected. scan += 1 ;
321322 check_statistics ( alice, & expected) . await ;
322323
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 ?;
324326 expected. clipboard += 1 ;
325327 check_statistics ( alice, & expected) . await ;
326328
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 ?;
328331 expected. clipboard += 1 ;
329332 check_statistics ( alice, & expected) . await ;
330333
@@ -367,7 +370,7 @@ async fn test_statistics_securejoin_uipaths() -> Result<()> {
367370 expected. other += 1 ;
368371 check_statistics ( alice, & expected) . await ;
369372
370- join_securejoin_with_source (
373+ join_securejoin_with_ux_info (
371374 alice,
372375 & qr,
373376 Some ( 0 ) ,
@@ -377,7 +380,7 @@ async fn test_statistics_securejoin_uipaths() -> Result<()> {
377380 expected. new_contact += 1 ;
378381 check_statistics ( alice, & expected) . await ;
379382
380- join_securejoin_with_source (
383+ join_securejoin_with_ux_info (
381384 alice,
382385 & qr,
383386 Some ( 0 ) ,
@@ -387,7 +390,8 @@ async fn test_statistics_securejoin_uipaths() -> Result<()> {
387390 expected. new_contact += 1 ;
388391 check_statistics ( alice, & expected) . await ;
389392
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 ?;
391395 expected. qr_icon += 1 ;
392396 check_statistics ( alice, & expected) . await ;
393397
0 commit comments