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

Method applyTopicCreator

Telegram/SourceFiles/data/data_replies_list.cpp:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void RepliesList::applyTopicCreator(PeerId creatorId) {
152 const auto owner = &_history->owner();
153 const auto peerId = _history->peer->id;
154 for (const auto &id : _list) {
155 if (const auto item = owner->message(peerId, id)) {
156 if (item->from()->id == creatorId) {
157 owner->requestItemResize(item);
158 }
159 }
160 }
161}
162
163rpl::producer<MessagesSlice> RepliesList::source(
164 MessagePosition aroundId,

Callers

nothing calls this directly

Calls 4

requestItemResizeMethod · 0.80
ownerMethod · 0.45
messageMethod · 0.45
fromMethod · 0.45

Tested by

no test coverage detected