mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Move to std::optional.
This commit is contained in:
@@ -1842,8 +1842,8 @@ void Session::applyNotifySetting(
|
||||
|
||||
void Session::updateNotifySettings(
|
||||
not_null<PeerData*> peer,
|
||||
base::optional<int> muteForSeconds,
|
||||
base::optional<bool> silentPosts) {
|
||||
std::optional<int> muteForSeconds,
|
||||
std::optional<bool> silentPosts) {
|
||||
if (peer->notifyChange(muteForSeconds, silentPosts)) {
|
||||
updateNotifySettingsLocal(peer);
|
||||
_session->api().updateNotifySettingsDelayed(peer);
|
||||
|
Reference in New Issue
Block a user