2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Track tag counts in all sublists.

This commit is contained in:
John Preston
2024-01-26 16:03:20 +04:00
parent d116c8fea0
commit 6f57302562
3 changed files with 179 additions and 99 deletions

View File

@@ -2987,16 +2987,9 @@ void InnerWidget::searchInChat(
if (peer->isSelf()) {
const auto reactions = &peer->owner().reactions();
const auto list = [=] {
return reactions->list(Data::Reactions::Type::MyTags);
};
_searchTags = std::make_unique<SearchTags>(
&peer->owner(),
rpl::single(
list()
) | rpl::then(
reactions->myTagsUpdates() | rpl::map(list)
),
reactions->myTagsValue(sublist),
tags);
_searchTags->selectedValue(