mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
Show sender name override in chatlist summary
This commit is contained in:
@@ -1078,17 +1078,9 @@ impl Lot {
|
|||||||
self.text1 = None;
|
self.text1 = None;
|
||||||
self.text1_meaning = Meaning::None;
|
self.text1_meaning = Meaning::None;
|
||||||
} else {
|
} else {
|
||||||
if chat.id.is_deaddrop() {
|
self.text1 = msg
|
||||||
if let Some(contact) = contact {
|
.get_override_sender_name()
|
||||||
self.text1 = Some(msg.get_sender_name(contact));
|
.or_else(|| contact.map(|contact| msg.get_sender_name(contact)));
|
||||||
} else {
|
|
||||||
self.text1 = None;
|
|
||||||
}
|
|
||||||
} else if let Some(contact) = contact {
|
|
||||||
self.text1 = Some(msg.get_sender_name(contact));
|
|
||||||
} else {
|
|
||||||
self.text1 = None;
|
|
||||||
}
|
|
||||||
self.text1_meaning = Meaning::Text1Username;
|
self.text1_meaning = Meaning::Text1Username;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user