2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Show "Hide read time" only on non-trivial privacy.

This commit is contained in:
John Preston
2024-01-16 16:53:46 +04:00
parent 5daa5a00f0
commit 3710d61a09
5 changed files with 49 additions and 10 deletions

View File

@@ -379,7 +379,7 @@ void EditPrivacyBox::setupContent() {
auto middle = _controller->setupMiddleWidget(
_window,
content,
std::move(optionValue));
rpl::duplicate(optionValue));
if (middle) {
content->add(std::move(middle));
}
@@ -396,7 +396,11 @@ void EditPrivacyBox::setupContent() {
_controller->exceptionsDescription() | Ui::Text::ToWithEntities(),
st::defaultVerticalListSkip);
if (auto below = _controller->setupBelowWidget(_window, content)) {
auto below = _controller->setupBelowWidget(
_window,
content,
rpl::duplicate(optionValue));
if (below) {
content->add(std::move(below));
}