mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Show only active reactions in quick reaction box.
This commit is contained in:
@@ -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)),
|
||||
|
Reference in New Issue
Block a user