| 1674 | } |
| 1675 | |
| 1676 | ShareBox::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 | |
| 1685 | ShareBox::SubmitCallback ShareBox::DefaultForwardCallback( |
| 1686 | std::shared_ptr<Ui::Show> show, |
nothing calls this directly
no test coverage detected