| 2486 | } |
| 2487 | |
| 2488 | HistoryItemsList 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 | |
| 2501 | MessageIdsList Session::itemsToIds( |
| 2502 | const HistoryItemsList &items) const { |
no outgoing calls
no test coverage detected