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 let self_name = match self.context.get_config(Config::Displayname).await
{ {
Some(name) => name, Some(name) => name,
None => match self.context.get_config(Config::Addr).await { None => self
Some(name) => name, .context
None => self .get_config(Config::Addr)
.context .await
.stock_str(StockMessage::MessengerName) .unwrap_or_default(),
.await
.to_string(),
},
}; };
self.context self.context

View File

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