mirror of
https://github.com/chatmail/core.git
synced 2026-05-17 05:46:30 +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
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user