unbury on sync start
https://forums.ankiweb.net/t/unburying-works-differently-on-anki-desktop-ankiweb-and-ios-app/6909
This commit is contained in:
parent
163a9df886
commit
e4d44efecc
@ -100,11 +100,18 @@ impl SyncServer for LocalServer {
|
||||
self.client_is_newer = client_is_newer;
|
||||
|
||||
self.col.storage.begin_rust_trx()?;
|
||||
|
||||
// make sure any pending cards have been unburied first if necessary
|
||||
let timing = self.col.timing_today()?;
|
||||
self.col.unbury_if_day_rolled_over(timing)?;
|
||||
|
||||
// fetch local graves
|
||||
let server_graves = self.col.storage.pending_graves(client_usn)?;
|
||||
// Handle AnkiDroid using old protocol
|
||||
// handle AnkiDroid using old protocol
|
||||
if let Some(graves) = deprecated_client_graves {
|
||||
self.col.apply_graves(graves, self.server_usn)?;
|
||||
}
|
||||
|
||||
Ok(server_graves)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user