| 2118 | } |
| 2119 | |
| 2120 | void 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 | |
| 2128 | rpl::producer<not_null<const HistoryItem*>> Session::itemViewRefreshRequest() const { |
| 2129 | return _itemViewRefreshRequest.events(); |
no test coverage detected