Watch
0
0
Fork
You've already forked hyperhive
0

hive-matrix: sliding sync starts again, the crypto store's classic /sync token is reset before it is sent as to_device.since

The sdk sends the crypto store's next_batch_token as extensions.to_device.since. Classic /sync writes its own token there, which the homeserver refuses (400, should look like an int), so every start fell back to /sync and wrote the classic token again. The daemon now replaces a non-integer token with 0 before the client opens the store.
This commit is contained in:
damocles 2026-11-11 06:05:28 +01:00 • committed by mara
commit f8beca4e6a

View file

@ -137,6 +137,7 @@ pub async fn build_and_restore(
fs::create_dir_all(state_dir)
.await
.with_context(|| format!("mkdir matrix state dir {}", state_dir.display()))?;
crate::sliding::reset_classic_to_device_token(state_dir).await;
let client = Client::builder()
.homeserver_url(homeserver)
.sqlite_store(state_dir, None)