2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fixed muting of peer forever.

This commit is contained in:
23rd
2022-09-14 11:28:59 +03:00
committed by John Preston
parent 84400f5912
commit 557a2e400e
10 changed files with 55 additions and 30 deletions

View File

@@ -142,7 +142,7 @@ void PeerMenuAddMuteSubmenuAction(
+ Ui::FormatMuteForTiny(peer->notifyMuteUntil().value_or(0)
- base::unixtime::now());
addAction(text, [=] {
peer->owner().notifySettings().update(peer, 0);
peer->owner().notifySettings().update(peer, { .unmute = true });
}, &st::menuIconUnmute);
} else {
const auto show = std::make_shared<Window::Show>(controller);
@@ -1479,7 +1479,7 @@ void PeerMenuAddMuteAction(
Box<MuteSettingsBox>(peer),
Ui::LayerOption::CloseOther);
} else {
peer->owner().notifySettings().update(peer, 0);
peer->owner().notifySettings().update(peer, { .unmute = true });
}
}, (peer->owner().notifySettings().isMuted(peer)
? &st::menuIconUnmute