Use plain get_config(Config::ConfiguredAddr) to not ignore db errors

This commit is contained in:
Hocuri
2022-04-24 12:39:46 +02:00
committed by holger krekel
parent 0e595c9801
commit 9e1770316a
3 changed files with 13 additions and 6 deletions

View File

@@ -454,7 +454,7 @@ async fn configure(ctx: &Context, param: &mut LoginParam) -> Result<()> {
progress!(ctx, 910);
if ctx.get_primary_self_addr().await.ok().as_deref() != Some(&param.addr) {
if ctx.get_config(Config::ConfiguredAddr).await?.as_deref() != Some(&param.addr) {
// Switched account, all server UIDs we know are invalid
job::schedule_resync(ctx).await?;
}