2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Remove locally saved empty histories.

This commit is contained in:
John Preston
2019-05-03 15:18:18 +04:00
parent 39b7f307a4
commit 0247e876df
10 changed files with 9 additions and 173 deletions

View File

@@ -1426,7 +1426,6 @@ void InnerWidget::removeDialog(Key key) {
session().data().removeChatListEntry(key);
if (const auto history = key.history()) {
session().notifications().clearFromHistory(history);
Local::removeSavedPeer(history->peer);
}
const auto i = ranges::find(_filterResults, key, &Row::key);
if (i != _filterResults.end()) {