mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 14:06:29 +03:00
Use plain get_config(Config::ConfiguredAddr) to not ignore db errors
This commit is contained in:
@@ -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(¶m.addr) {
|
||||
if ctx.get_config(Config::ConfiguredAddr).await?.as_deref() != Some(¶m.addr) {
|
||||
// Switched account, all server UIDs we know are invalid
|
||||
job::schedule_resync(ctx).await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user