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:
@@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user