deltachat::securejoin::bob

Function start_protocol

source
pub(super) async fn start_protocol(
    context: &Context,
    invite: QrInvite,
) -> Result<ChatId>
Expand description

Starts the securejoin protocol with the QR invite.

This will try to start the securejoin protocol for the given QR invite. If it succeeded the protocol state will be tracked in self.

This function takes care of handling multiple concurrent joins and handling errors while starting the protocol.

ยงReturns

The ChatId of the created chat is returned, for a SetupContact QR this is the 1:1 chat with Alice, for a SecureJoin QR this is the group chat.