mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
fix: emit progress(0) in case AEAP is tried
This commit is contained in:
@@ -129,7 +129,9 @@ impl Context {
|
|||||||
param.addr = addr_normalize(¶m.addr);
|
param.addr = addr_normalize(¶m.addr);
|
||||||
let old_addr = self.get_config(Config::ConfiguredAddr).await?;
|
let old_addr = self.get_config(Config::ConfiguredAddr).await?;
|
||||||
if self.is_configured().await? && !addr_cmp(&old_addr.unwrap_or_default(), ¶m.addr) {
|
if self.is_configured().await? && !addr_cmp(&old_addr.unwrap_or_default(), ¶m.addr) {
|
||||||
bail!("Changing your email address is not supported right now. Check back in a few months!");
|
let error_msg = "Changing your email address is not supported right now. Check back in a few months!";
|
||||||
|
progress!(self, 0, Some(error_msg.to_string()));
|
||||||
|
bail!(error_msg);
|
||||||
}
|
}
|
||||||
let cancel_channel = self.alloc_ongoing().await?;
|
let cancel_channel = self.alloc_ongoing().await?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user