2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16: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

@@ -419,7 +419,9 @@ object_ptr<Ui::RpWidget> DetailsFiller::setupMuteToggle() {
return true;
}
if (peer->owner().notifySettings().isMuted(peer)) {
peer->owner().notifySettings().update(peer, 0);
peer->owner().notifySettings().update(
peer,
{ .unmute = true });
return false;
} else {
return true;