Filter only chats from the list in exceptions.

This commit is contained in:
John Preston 2020-03-20 17:49:43 +04:00
parent b42ba1a7a3
commit 2dbaee4fe1
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ object_ptr<Ui::RpWidget> EditFilterChatsListController::prepareTypesList() {
auto EditFilterChatsListController::createRow(not_null<History*> history)
-> std::unique_ptr<Row> {
return std::make_unique<Row>(history);
return history->inChatList() ? std::make_unique<Row>(history) : nullptr;
}
void EditFilterChatsListController::updateTitle() {