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

Method reserveCreatingId

Telegram/SourceFiles/data/data_forum.cpp:524–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524MsgId Forum::reserveCreatingId(
525 const QString &title,
526 int32 colorId,
527 DocumentId iconId) {
528 const auto result = owner().nextLocalMessageId();
529 _creatingRootIds.emplace(result);
530 applyTopicAdded(
531 result,
532 title,
533 colorId,
534 iconId,
535 session().userPeerId(),
536 base::unixtime::now(),
537 true);
538 return result;
539}
540
541ForumTopic *Forum::reserveNewBotTopic() {
542 const auto &colors = ForumTopicColorIds();

Callers 1

EditForumTopicBoxFunction · 0.80

Calls 3

nextLocalMessageIdMethod · 0.80
emplaceMethod · 0.80
userPeerIdMethod · 0.80

Tested by

no test coverage detected