(context: &Context, qr: &str)
| 246 | } |
| 247 | |
| 248 | async fn securejoin(context: &Context, qr: &str) -> Result<ChatId> { |
| 249 | /*======================================================== |
| 250 | ==== Bob - the joiner's side ===== |
| 251 | ==== Step 2 in "Setup verified contact" protocol ===== |
| 252 | ========================================================*/ |
| 253 | |
| 254 | info!(context, "Requesting secure-join ...",); |
| 255 | let qr_scan = check_qr(context, qr).await?; |
| 256 | |
| 257 | let invite = QrInvite::try_from(qr_scan)?; |
| 258 | |
| 259 | stats::count_securejoin_invite(context, &invite) |
| 260 | .await |
| 261 | .log_err(context) |
| 262 | .ok(); |
| 263 | |
| 264 | bob::start_protocol(context, invite).await |
| 265 | } |
| 266 | |
| 267 | /// Send handshake message from Alice's device. |
| 268 | async fn send_alice_handshake_msg( |
no test coverage detected