MCPcopy Create free account
hub / github.com/chatmail/core / execute_securejoin

Method execute_securejoin

src/test_utils.rs:248–257  ·  view source on GitHub ↗

Executes SecureJoin protocol between `scanner` and `scanned`. Returns chat ID of the 1:1 chat for `scanner`.

(&self, scanner: &TestContext, scanned: &TestContext)

Source from the content-addressed store, hash-verified

246 ///
247 /// Returns chat ID of the 1:1 chat for `scanner`.
248 pub async fn execute_securejoin(&self, scanner: &TestContext, scanned: &TestContext) -> ChatId {
249 self.section(&format!(
250 "{} scans {}'s QR code",
251 scanner.name(),
252 scanned.name()
253 ));
254
255 let qr = get_securejoin_qr(&scanned.ctx, None).await.unwrap();
256 self.exec_securejoin_qr(scanner, scanned, &qr).await
257 }
258
259 /// Executes SecureJoin initiated by `joiner` scanning `qr` generated by `inviter`.
260 ///

Calls 3

get_securejoin_qrFunction · 0.85
exec_securejoin_qrMethod · 0.80
sectionMethod · 0.45

Tested by

no test coverage detected