Fix build with GCC.

This commit is contained in:
John Preston
2022-04-07 18:28:58 +04:00
parent 84cd5b9278
commit ea30918d35
8 changed files with 1 additions and 74 deletions
@@ -106,9 +106,6 @@ bool NotifyPeerSettingsValue::change(
std::optional<bool> silentPosts,
std::optional<NotifySound> sound) {
const auto now = base::unixtime::now();
const auto notMuted = muteForSeconds
? !(*muteForSeconds)
: (!_mute || *_mute <= now);
const auto newMute = muteForSeconds
? base::make_optional((*muteForSeconds > 0)
? (now + *muteForSeconds)