2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

Applied search categories to emoji userpic builder.

This commit is contained in:
23rd
2023-01-30 15:20:25 +03:00
committed by John Preston
parent fda49a3bfa
commit 70cda17dea
5 changed files with 13 additions and 6 deletions

View File

@@ -295,12 +295,15 @@ std::unique_ptr<Ui::TabbedSearch> MakeSearch(
const style::EmojiPan &st,
Fn<void(std::vector<QString>&&)> callback,
not_null<Main::Session*> session,
bool statusCategories) {
bool statusCategories,
bool profilePhotoCategories) {
using Descriptor = Ui::SearchDescriptor;
const auto owner = &session->data();
auto result = std::make_unique<Ui::TabbedSearch>(parent, st, Descriptor{
.st = st.search,
.groups = (statusCategories
.groups = (profilePhotoCategories
? owner->emojiStatuses().profilePhotoGroupsValue()
: statusCategories
? owner->emojiStatuses().statusGroupsValue()
: owner->emojiStatuses().emojiGroupsValue()),
.customEmojiFactory = owner->customEmojiManager().factory(