MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / requestItemViewRefresh

Method requestItemViewRefresh

Telegram/SourceFiles/data/data_session.cpp:2120–2126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2118}
2119
2120void Session::requestItemViewRefresh(not_null<const HistoryItem*> item) {
2121 if (const auto view = item->mainView()) {
2122 notifyHistoryChangeDelayed(item->history());
2123 view->refreshInBlock();
2124 }
2125 _itemViewRefreshRequest.fire_copy(item);
2126}
2127
2128rpl::producer<not_null<const HistoryItem*>> Session::itemViewRefreshRequest() const {
2129 return _itemViewRefreshRequest.events();

Callers 15

MediaStoryMethod · 0.80
refreshMessageMethod · 0.80
refreshViewsMethod · 0.80
refreshItemsMethod · 0.80
toggleMethod · 0.80
applyMethod · 0.80
loadMethod · 0.80
unhideMessageMethod · 0.80
hideMessageMethod · 0.80
addItemToBlockMethod · 0.80

Calls 3

mainViewMethod · 0.80
refreshInBlockMethod · 0.80
historyMethod · 0.45

Tested by

no test coverage detected