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

Method add_sync_item

src/sync.rs:156–158  ·  view source on GitHub ↗

Adds an item to the list of items that should be synchronized to other devices. NB: Private and `pub(crate)` functions shouldn't call this unless `Sync::Sync` is explicitly passed to them. This way it's always clear whether the code performs synchronisation.

(&self, data: SyncData)

Source from the content-addressed store, hash-verified

154 /// NB: Private and `pub(crate)` functions shouldn't call this unless `Sync::Sync` is explicitly
155 /// passed to them. This way it's always clear whether the code performs synchronisation.
156 pub(crate) async fn add_sync_item(&self, data: SyncData) -> Result<()> {
157 self.add_sync_item_with_timestamp(data, time()).await
158 }
159
160 /// Adds item and timestamp to the list of items that should be synchronized to other devices.
161 /// If device synchronization is disabled, the function does nothing.

Callers 10

set_config_exMethod · 0.80
syncFunction · 0.80
save_msgsFunction · 0.80
send_sync_transportsFunction · 0.80
sync_qr_code_tokensMethod · 0.80
test_send_sync_msgFunction · 0.80
delete_msgs_exFunction · 0.80

Calls 2

timeFunction · 0.85

Tested by 3

test_send_sync_msgFunction · 0.64