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

Move to std::optional.

This commit is contained in:
John Preston
2018-09-21 19:28:46 +03:00
parent 850efbde95
commit 2e5a0e056c
115 changed files with 632 additions and 672 deletions

View File

@@ -396,8 +396,8 @@ public:
const MTPPeerNotifySettings &settings);
void updateNotifySettings(
not_null<PeerData*> peer,
base::optional<int> muteForSeconds,
base::optional<bool> silentPosts = base::none);
std::optional<int> muteForSeconds,
std::optional<bool> silentPosts = std::nullopt);
bool notifyIsMuted(
not_null<const PeerData*> peer,
TimeMs *changesIn = nullptr) const;