2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support per-topic notification settings.

This commit is contained in:
John Preston
2022-10-13 00:23:14 +04:00
parent 24843e3acd
commit 92a4b27e65
31 changed files with 713 additions and 293 deletions

View File

@@ -3892,7 +3892,9 @@ void Session::removeChatListEntry(Dialogs::Key key) {
_contactsNoChatsList.addByName(key);
}
}
if (const auto history = key.history()) {
if (const auto topic = key.topic()) {
Core::App().notifications().clearFromTopic(topic);
} else if (const auto history = key.history()) {
Core::App().notifications().clearFromHistory(history);
}
}