mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Replace dialogs mode with filters.
This commit is contained in:
@@ -937,10 +937,7 @@ void ShareBox::Inner::changeCheckState(Chat *chat) {
|
||||
const auto history = chat->peer->owner().history(chat->peer);
|
||||
auto row = _chatsIndexed->getRow(history);
|
||||
if (!row) {
|
||||
const auto rowsByLetter = _chatsIndexed->addToEnd(history);
|
||||
const auto it = rowsByLetter.find(0);
|
||||
Assert(it != rowsByLetter.cend());
|
||||
row = it->second;
|
||||
row = _chatsIndexed->addToEnd(history).main;
|
||||
}
|
||||
chat = getChat(row);
|
||||
if (!chat->checkbox.checked()) {
|
||||
|
Reference in New Issue
Block a user