mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +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