fix: emit progress(0) in case AEAP is tried

This commit is contained in:
B. Petersen
2025-04-24 16:18:10 +02:00
committed by bjoern
parent 83bc497f0d
commit 6dba14158a

View File

@@ -129,7 +129,9 @@ impl Context {
param.addr = addr_normalize(&param.addr);
let old_addr = self.get_config(Config::ConfiguredAddr).await?;
if self.is_configured().await? && !addr_cmp(&old_addr.unwrap_or_default(), &param.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?;