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

Method sync

src/chat.rs:2125–2130  ·  view source on GitHub ↗

Synchronises a chat action to other devices.

(&self, context: &Context, action: SyncAction)

Source from the content-addressed store, hash-verified

2123
2124 /// Synchronises a chat action to other devices.
2125 pub(crate) async fn sync(&self, context: &Context, action: SyncAction) -> Result<()> {
2126 if let Some(id) = self.get_sync_id(context).await? {
2127 sync(context, id, action).await?;
2128 }
2129 Ok(())
2130 }
2131}
2132
2133pub(crate) async fn sync(context: &Context, id: SyncId, action: SyncAction) -> Result<()> {

Callers 8

block_exMethod · 0.45
unblock_exMethod · 0.45
accept_exMethod · 0.45
set_visibility_exMethod · 0.45
sync_contactsMethod · 0.45
set_muted_exFunction · 0.45
set_chat_description_exFunction · 0.45
rename_exFunction · 0.45

Calls 2

get_sync_idMethod · 0.80
syncFunction · 0.70

Tested by

no test coverage detected