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

Add "Reaction button in messages" setting.

This commit is contained in:
John Preston
2022-09-13 07:44:22 +04:00
parent 20a5950f99
commit 1363faddbf
8 changed files with 63 additions and 2 deletions

View File

@@ -978,6 +978,21 @@ void SetupMessages(
show.showBox(Box(ReactionsSettingsBox, controller));
});
AddSkip(inner, st::settingsSendTypeSkip);
inner->add(
object_ptr<Ui::Checkbox>(
inner,
tr::lng_settings_chat_corner_reaction(tr::now),
Core::App().settings().cornerReaction(),
st::settingsCheckbox),
st::settingsCheckboxPadding
)->checkedChanges(
) | rpl::start_with_next([=](bool checked) {
Core::App().settings().setCornerReaction(checked);
Core::App().saveSettingsDelayed();
}, inner->lifetime());
AddSkip(inner, st::settingsCheckboxesSkip);
}