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

Method processChats

Telegram/SourceFiles/data/data_session.cpp:1219–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1217}
1218
1219PeerData *Session::processChats(const MTPVector<MTPChat> &data) {
1220 auto result = (PeerData*)nullptr;
1221 _postponedMonoforumLinkedIds.emplace();
1222 for (const auto &chat : data.v) {
1223 result = processChat(chat);
1224 }
1225 const auto ids = base::take(_postponedMonoforumLinkedIds);
1226 for (const auto &[channel, linkedId] : *ids) {
1227 applyMonoforumLinkedId(channel, linkedId);
1228 }
1229 return result;
1230}
1231
1232void Session::applyMonoforumLinkedId(
1233 not_null<ChannelData*> channel,

Callers 15

requestMoreDialogsMethod · 0.80
requestPinnedDialogsMethod · 0.80
requestFullPeerMethod · 0.80
gotChatFullMethod · 0.80
requestPeerSettingsMethod · 0.80
resolveUsernameMethod · 0.80
resolveChatLinkMethod · 0.80
resolveDoneMethod · 0.80
resolveChannelByIdMethod · 0.80
applyBoostMethod · 0.80
showRepliesForMessageMethod · 0.80

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected