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

Function sync

src/chat.rs:2133–2139  ·  view source on GitHub ↗
(context: &Context, id: SyncId, action: SyncAction)

Source from the content-addressed store, hash-verified

2131}
2132
2133pub(crate) async fn sync(context: &Context, id: SyncId, action: SyncAction) -> Result<()> {
2134 context
2135 .add_sync_item(SyncData::AlterChat { id, action })
2136 .await?;
2137 context.scheduler.interrupt_smtp().await;
2138 Ok(())
2139}
2140
2141/// Whether the chat is pinned or archived.
2142#[derive(Debug, Copy, Eq, PartialEq, Clone, Serialize, Deserialize, EnumIter, Default)]

Callers 15

set_name_exMethod · 0.70
create_exMethod · 0.70
set_blockedFunction · 0.70
delete_exMethod · 0.70
syncMethod · 0.70
create_group_exFunction · 0.70
create_out_broadcast_exFunction · 0.70

Calls 2

add_sync_itemMethod · 0.80
interrupt_smtpMethod · 0.80