Fixed display of forums in share box with applied chats filter.

This commit is contained in:
23rd 2024-11-15 20:04:33 +03:00
parent 9d3b3476c2
commit 013b58f6f6

View file

@ -1388,7 +1388,8 @@ void ShareBox::Inner::applyChatFilter(FilterId id) {
const auto addList = [&](not_null<Dialogs::IndexedList*> list) {
for (const auto &row : list->all()) {
if (const auto history = row->history()) {
if (_descriptor.filterCallback(history)) {
if (history->asForum()
|| _descriptor.filterCallback(history)) {
_customChatsIndexed->addToEnd(history);
}
}