2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix lagging chat list update in support.

This commit is contained in:
John Preston
2018-12-30 13:16:50 +04:00
parent 30e8f17b37
commit c11b977f1d
10 changed files with 18 additions and 23 deletions

View File

@@ -1346,13 +1346,8 @@ void DialogsInner::repaintDialogRow(
}
}
void DialogsInner::repaintDialogRow(
not_null<History*> history,
MsgId messageId) {
updateDialogRow({
history,
FullMsgId(history->channelId(), messageId)
});
void DialogsInner::repaintDialogRow(Dialogs::RowDescriptor row) {
updateDialogRow(row);
}
void DialogsInner::updateSearchResult(not_null<PeerData*> peer) {
@@ -1439,8 +1434,7 @@ void DialogsInner::updateDialogRow(
const auto add = searchedOffset();
auto index = 0;
for (const auto &result : _searchResults) {
auto item = result->item();
if (item->fullId() == row.fullId) {
if (isSearchResultActive(result.get(), row)) {
updateRow(add + index * st::dialogsRowHeight);
break;
}