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

Method sync_qr_code_token_deletion

src/sync.rs:204–217  ·  view source on GitHub ↗

Adds deleted qr-code token to the list of items to be synced so that the token also gets deleted on the other devices. This interrupts SMTP on its own.

(
        &self,
        invitenumber: String,
        auth: String,
    )

Source from the content-addressed store, hash-verified

202 /// so that the token also gets deleted on the other devices.
203 /// This interrupts SMTP on its own.
204 pub(crate) async fn sync_qr_code_token_deletion(
205 &self,
206 invitenumber: String,
207 auth: String,
208 ) -> Result<()> {
209 self.add_sync_item(SyncData::DeleteQrToken(QrTokenData {
210 invitenumber,
211 auth,
212 grpid: None,
213 }))
214 .await?;
215 self.scheduler.interrupt_smtp().await;
216 Ok(())
217 }
218
219 /// Sends out a self-sent message with items to be synchronized, if any.
220 ///

Callers 1

set_config_from_qrFunction · 0.80

Calls 2

add_sync_itemMethod · 0.80
interrupt_smtpMethod · 0.80

Tested by

no test coverage detected