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

Method requestItemTextRefresh

Telegram/SourceFiles/data/data_session.cpp:2148–2165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2146}
2147
2148void Session::requestItemTextRefresh(not_null<HistoryItem*> item) {
2149 const auto call = [&](not_null<HistoryItem*> item) {
2150 enumerateItemViews(item, [&](not_null<ViewElement*> view) {
2151 view->itemTextUpdated();
2152 });
2153 requestItemResize(item);
2154 if (item->textAppearing()) {
2155 enumerateItemViews(item, [&](not_null<ViewElement*> view) {
2156 view->skipInactiveTextAppearing();
2157 });
2158 }
2159 };
2160 if (const auto group = groups().find(item)) {
2161 call(group->items.front());
2162 } else {
2163 call(item);
2164 }
2165}
2166
2167void Session::registerRestricted(
2168 not_null<const HistoryItem*> item,

Callers 15

appendMethod · 0.80
appendMethod · 0.80
summarizeMethod · 0.80
applyPreparedMethod · 0.80
updateMethod · 0.80
unhideMessageMethod · 0.80
hideMessageMethod · 0.80
dependencyItemRemovedMethod · 0.80
updateDependencyItemMethod · 0.80
setServiceTextMethod · 0.80

Calls 5

itemTextUpdatedMethod · 0.80
textAppearingMethod · 0.80
frontMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected