2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme to layer 196.

This commit is contained in:
John Preston
2024-12-04 11:18:51 +04:00
parent 4505a2bf2d
commit c1528f532e
37 changed files with 291 additions and 171 deletions

View File

@@ -149,9 +149,9 @@ void ShowFiltersListMenu(
for (auto i = 0; i < list.size(); ++i) {
const auto &filter = list[i];
auto text = filter.title().isEmpty()
auto text = filter.title().empty()
? tr::lng_filters_all_short(tr::now)
: filter.title();
: filter.title().text; // todo filter emoji
const auto action = state->menu->addAction(std::move(text), [=] {
if (i != active) {
@@ -329,9 +329,9 @@ not_null<Ui::RpWidget*> AddChatFiltersTabsStrip(
ranges::views::all(
list
) | ranges::views::transform([](const Data::ChatFilter &filter) {
return filter.title().isEmpty()
return filter.title().empty()
? tr::lng_filters_all_short(tr::now)
: filter.title();
: filter.title().text; // todo filter emoji
}) | ranges::to_vector);
if (!sectionsChanged) {
return;