mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
fix: invalidate configured_addr cache before sending transport sync message
Uncaching only after send_sync_transports() could send the sync message from the old primary address, so other devices never switched.
This commit is contained in:
@@ -817,8 +817,9 @@ impl Context {
|
|||||||
Ok(())
|
Ok(())
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
send_sync_transports(self).await?;
|
// Invalidate the cache so the sync message cannot read a stale primary address.
|
||||||
self.sql.uncache_raw_config("configured_addr").await;
|
self.sql.uncache_raw_config("configured_addr").await;
|
||||||
|
send_sync_transports(self).await?;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
|
|||||||
Reference in New Issue
Block a user