2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -109,9 +109,14 @@ public:
Exception exception) const override;
rpl::producer<QString> exceptionsDescription() const override;
void handleExceptionsChange(
Exception exception,
rpl::producer<int> value) override;
object_ptr<Ui::RpWidget> setupBelowWidget(
not_null<Window::SessionController*> controller,
not_null<QWidget*> parent) override;
not_null<QWidget*> parent,
rpl::producer<Option> option) override;
void confirmSave(
bool someAreDisallowed,
@@ -121,6 +126,8 @@ public:
private:
const not_null<::Main::Session*> _session;
rpl::variable<Option> _option;
rpl::variable<int> _exceptionsNever;
bool _hideReadTime = false;
};
@@ -159,7 +166,8 @@ public:
object_ptr<Ui::RpWidget> setupBelowWidget(
not_null<Window::SessionController*> controller,
not_null<QWidget*> parent) override;
not_null<QWidget*> parent,
rpl::producer<Option> option) override;
};