mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +03:00
Assume that thare always is Config::Addr set
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user