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

@@ -68,21 +68,21 @@ public:
bool isVerified() const;
bool isMegagroup() const;
base::optional<TimeId> notifyMuteUntil() const {
std::optional<TimeId> notifyMuteUntil() const {
return _notify.muteUntil();
}
bool notifyChange(const MTPPeerNotifySettings &settings) {
return _notify.change(settings);
}
bool notifyChange(
base::optional<int> muteForSeconds,
base::optional<bool> silentPosts) {
std::optional<int> muteForSeconds,
std::optional<bool> silentPosts) {
return _notify.change(muteForSeconds, silentPosts);
}
bool notifySettingsUnknown() const {
return _notify.settingsUnknown();
}
base::optional<bool> notifySilentPosts() const {
std::optional<bool> notifySilentPosts() const {
return _notify.silentPosts();
}
MTPinputPeerNotifySettings notifySerialize() const {