feat: more text instead of sender in channel summary

the sender is usually always the same and is not needed already in the summary;
making more place for the message instead
This commit is contained in:
B. Petersen
2026-01-07 15:33:35 +01:00
committed by bjoern
parent ceba687df3
commit 55ab1b86f7
3 changed files with 6 additions and 10 deletions

View File

@@ -98,14 +98,13 @@ impl Summary {
let prefix = if msg.state == MessageState::OutDraft {
Some(SummaryPrefix::Draft(stock_str::draft(context).await))
} else if msg.from_id == ContactId::SELF {
if msg.is_info() || msg.viewtype == Viewtype::Call {
if msg.is_info() || msg.viewtype == Viewtype::Call || chat.typ == Chattype::OutBroadcast
{
None
} else {
Some(SummaryPrefix::Me(stock_str::self_msg(context).await))
}
} else if chat.typ == Chattype::Group
|| chat.typ == Chattype::OutBroadcast
|| chat.typ == Chattype::InBroadcast
|| chat.typ == Chattype::Mailinglist
|| chat.is_self_talk()
{