mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show only active reactions in quick reaction box.
This commit is contained in:
parent
d59ed7b14c
commit
9bd9f17a6c
1 changed files with 2 additions and 2 deletions
|
@ -215,7 +215,7 @@ void AddMessage(
|
||||||
iconSize = st::settingsReactionMessageSize
|
iconSize = st::settingsReactionMessageSize
|
||||||
](const QString &emoji) {
|
](const QString &emoji) {
|
||||||
const auto &reactions = controller->session().data().reactions();
|
const auto &reactions = controller->session().data().reactions();
|
||||||
for (const auto &r : reactions.list(Data::Reactions::Type::All)) {
|
for (const auto &r : reactions.list(Data::Reactions::Type::Active)) {
|
||||||
if (emoji != r.emoji) {
|
if (emoji != r.emoji) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -430,7 +430,7 @@ void ReactionsSettingsBox(
|
||||||
};
|
};
|
||||||
|
|
||||||
auto firstCheckedButton = (Ui::RpWidget*)(nullptr);
|
auto firstCheckedButton = (Ui::RpWidget*)(nullptr);
|
||||||
for (const auto &r : reactions.list(Data::Reactions::Type::All)) {
|
for (const auto &r : reactions.list(Data::Reactions::Type::Active)) {
|
||||||
const auto button = Settings::AddButton(
|
const auto button = Settings::AddButton(
|
||||||
buttonsContainer,
|
buttonsContainer,
|
||||||
rpl::single<QString>(base::duplicate(r.title)),
|
rpl::single<QString>(base::duplicate(r.title)),
|
||||||
|
|
Loading…
Add table
Reference in a new issue