Skip to content

Commit

Permalink
Merge pull request #46 from telegramdesktop/dev
Browse files Browse the repository at this point in the history
upstream
  • Loading branch information
xmdnx authored Apr 30, 2024
2 parents 43ff2e4 + 62bd135 commit e385022
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 63 deletions.
8 changes: 1 addition & 7 deletions Telegram/SourceFiles/boxes/delete_messages_box.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,13 +379,7 @@ auto DeleteMessagesBox::revokeText(not_null<PeerData*> peer) const
return result;
}

const auto items = ranges::views::all(
_ids
) | ranges::views::transform([&](FullMsgId id) {
return peer->owner().message(id);
}) | ranges::views::filter([](HistoryItem *item) {
return (item != nullptr);
}) | ranges::to_vector;
const auto items = peer->owner().idsToItems(_ids);

if (items.size() != _ids.size()) {
// We don't have information about all messages.
Expand Down
Loading

0 comments on commit e385022

Please sign in to comment.