mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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
|
||||
](const QString &emoji) {
|
||||
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) {
|
||||
continue;
|
||||
}
|
||||
|
@ -430,7 +430,7 @@ void ReactionsSettingsBox(
|
|||
};
|
||||
|
||||
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(
|
||||
buttonsContainer,
|
||||
rpl::single<QString>(base::duplicate(r.title)),
|
||||
|
|
Loading…
Add table
Reference in a new issue