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

Add emoji autocomplete to all fields.

This commit is contained in:
John Preston
2018-11-21 14:09:46 +04:00
parent a1c61daea6
commit 9f5b09c263
22 changed files with 265 additions and 232 deletions

View File

@@ -238,7 +238,7 @@ void EditPrivacyBox::setupContent() {
const auto group = std::make_shared<Ui::RadioenumGroup<Option>>(
_value.option);
const auto toggle = Ui::AttachAsChild(content, rpl::event_stream<>());
const auto toggle = Ui::CreateChild<rpl::event_stream<>>(content);
group->setChangedCallback([=](Option value) {
_value.option = value;
@@ -251,9 +251,7 @@ void EditPrivacyBox::setupContent() {
: nullptr;
};
const auto addExceptionLink = [=](Exception exception) {
const auto update = Ui::AttachAsChild(
content,
rpl::event_stream<>());
const auto update = Ui::CreateChild<rpl::event_stream<>>(content);
auto label = update->events_starting_with(
rpl::empty_value()
) | rpl::map([=] {