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

Method idsToItems

Telegram/SourceFiles/data/data_session.cpp:2488–2499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2486}
2487
2488HistoryItemsList Session::idsToItems(
2489 const MessageIdsList &ids) const {
2490 return ranges::views::all(
2491 ids
2492 ) | ranges::views::transform([&](const FullMsgId &fullId) {
2493 return message(fullId);
2494 }) | ranges::views::filter([](HistoryItem *item) {
2495 return item != nullptr;
2496 }) | ranges::views::transform([](HistoryItem *item) {
2497 return not_null<HistoryItem*>(item);
2498 }) | ranges::to_vector;
2499}
2500
2501MessageIdsList Session::itemsToIds(
2502 const HistoryItemsList &items) const {

Callers 15

setForwardDraftMethod · 0.80
ShowForwardMessagesBoxFunction · 0.80
ShowSendNowMessagesBoxFunction · 0.80
revokeTextMethod · 0.80
FastShareMessageFunction · 0.80
FastShareMessageToSelfFunction · 0.80
resolveForwardDraftMethod · 0.80
confirmDeleteSelectedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected