Show sender name override in chatlist summary

This commit is contained in:
link2xt
2021-02-09 05:26:05 +03:00
committed by bjoern
parent 65fb2d791b
commit a2d64cbb4c

View File

@@ -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;
} }
} }