Assume that thare always is Config::Addr set

This commit is contained in:
Hocuri
2020-05-30 11:58:45 +02:00
committed by holger krekel
parent f172e92098
commit 22973899b8
2 changed files with 5 additions and 11 deletions

View File

@@ -377,14 +377,11 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
let self_name = match self.context.get_config(Config::Displayname).await
{
Some(name) => name,
None => match self.context.get_config(Config::Addr).await {
Some(name) => name,
None => self
.context
.stock_str(StockMessage::MessengerName)
.await
.to_string(),
},
None => self
.context
.get_config(Config::Addr)
.await
.unwrap_or_default(),
};
self.context

View File

@@ -182,9 +182,6 @@ pub enum StockMessage {
#[strum(props(fallback = "Message from %1$s"))]
SubjectForNewContact = 73,
#[strum(props(fallback = "Delta Chat"))]
MessengerName = 74,
}
/*