mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Apply edition updates to search result previews.
This commit is contained in:
@@ -1549,6 +1549,17 @@ void InnerWidget::repaintDialogRow(RowDescriptor row) {
|
||||
updateDialogRow(row);
|
||||
}
|
||||
|
||||
void InnerWidget::refreshDialogRow(RowDescriptor row) {
|
||||
if (row.fullId) {
|
||||
for (const auto &result : _searchResults) {
|
||||
if (result->item()->fullId() == row.fullId) {
|
||||
result->invalidateCache();
|
||||
}
|
||||
}
|
||||
}
|
||||
repaintDialogRow(row);
|
||||
}
|
||||
|
||||
void InnerWidget::updateSearchResult(not_null<PeerData*> peer) {
|
||||
if (_state == WidgetState::Filtered) {
|
||||
if (!_peerSearchResults.empty()) {
|
||||
|
Reference in New Issue
Block a user