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

Method applyReceivedTopics

Telegram/SourceFiles/data/data_forum.cpp:344–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void Forum::applyReceivedTopics(
345 const MTPmessages_ForumTopics &topics,
346 ForumOffsets &updateOffsets) {
347 applyReceivedTopics(topics, [&](not_null<ForumTopic*> topic) {
348 if (const auto last = topic->lastServerMessage()) {
349 updateOffsets.date = last->date();
350 updateOffsets.id = last->id;
351 }
352 updateOffsets.topicId = topic->rootId();
353 });
354}
355
356void Forum::applyReceivedTopics(
357 const MTPmessages_ForumTopics &topics,

Callers 3

searchOnServerMethod · 0.80
processTopicsMethod · 0.80
searchTopicsMethod · 0.80

Calls 15

channelMethod · 0.95
rootIdMethod · 0.80
processUsersMethod · 0.80
processChatsMethod · 0.80
processMessagesMethod · 0.80
ptsReceivedMethod · 0.80
emplaceMethod · 0.80
applyTopicMethod · 0.80
itemInvalidatedMethod · 0.80
updateChatListEntryMethod · 0.80
lastServerMessageMethod · 0.45
dateMethod · 0.45

Tested by

no test coverage detected