2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Allow all messages silent in support mode.

This commit is contained in:
John Preston
2020-11-19 16:23:51 +03:00
parent 1affb8172f
commit 00504b61cd
8 changed files with 70 additions and 38 deletions

View File

@@ -51,6 +51,12 @@ public:
void setSupportAllSearchResults(bool all);
[[nodiscard]] bool supportAllSearchResults() const;
[[nodiscard]] rpl::producer<bool> supportAllSearchResultsValue() const;
void setSupportAllSilent(bool enabled) {
_supportAllSilent = enabled;
}
[[nodiscard]] bool supportAllSilent() const {
return _supportAllSilent;
}
[[nodiscard]] ChatHelpers::SelectorTab selectorTab() const {
return _selectorTab;
@@ -131,6 +137,7 @@ private:
Support::SwitchSettings _supportSwitch;
bool _supportFixChatsOrder = true;
bool _supportTemplatesAutocomplete = true;
bool _supportAllSilent = false;
rpl::variable<int> _supportChatsTimeSlice
= kDefaultSupportChatsLimitSlice;
rpl::variable<bool> _supportAllSearchResults = false;