mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Extract Data::Thread common for History / ForumTopic.
This commit is contained in:
@@ -1496,9 +1496,14 @@ void Session::requestItemRepaint(not_null<const HistoryItem*> item) {
|
||||
}
|
||||
}
|
||||
const auto history = item->history();
|
||||
if (history->lastItemDialogsView.dependsOn(item)) {
|
||||
if (history->lastItemDialogsView().dependsOn(item)) {
|
||||
history->updateChatListEntry();
|
||||
}
|
||||
if (const auto topic = item->topic()) {
|
||||
if (topic->lastItemDialogsView().dependsOn(item)) {
|
||||
topic->updateChatListEntry();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rpl::producer<not_null<const HistoryItem*>> Session::itemRepaintRequest() const {
|
||||
|
||||
Reference in New Issue
Block a user