2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 08:55:59 +00:00

Simplify marked text context logic.

This commit is contained in:
John Preston
2025-03-07 14:17:39 +04:00
parent 789f3e1584
commit c9fb97cd7c
98 changed files with 441 additions and 609 deletions

View File

@@ -4308,10 +4308,7 @@ QImage *InnerWidget::cacheChatsFilterTag(
const auto color = Ui::EmptyUserpic::UserpicColor(colorIndex).color2;
entry.context.color = color->c;
entry.context.active = active;
entry.context.textContext = Core::MarkedTextContext{
.session = &session(),
.customEmojiRepaint = [] {},
};
entry.context.textContext = Core::TextContext({ .session = &session() });
entry.frame = Ui::ChatsFilterTag(roundedText, entry.context);
return &entry.frame;
}