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

Method DefaultForwardCountMessages

Telegram/SourceFiles/boxes/share_box.cpp:1676–1683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1674}
1675
1676ShareBox::CountMessagesCallback ShareBox::DefaultForwardCountMessages(
1677 not_null<History*> history,
1678 MessageIdsList msgIds) {
1679 return [=](const TextWithTags &comment) {
1680 const auto items = history->owner().idsToItems(msgIds);
1681 return int(items.size()) + (comment.empty() ? 0 : 1);
1682 };
1683}
1684
1685ShareBox::SubmitCallback ShareBox::DefaultForwardCallback(
1686 std::shared_ptr<Ui::Show> show,

Callers

nothing calls this directly

Calls 4

idsToItemsMethod · 0.80
ownerMethod · 0.45
sizeMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected