2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Forward grouped items. Fast share grouped items.

This commit is contained in:
John Preston
2017-12-16 00:23:20 +03:00
parent efa72578cd
commit 3a56b7cabd
9 changed files with 79 additions and 42 deletions

View File

@@ -378,6 +378,13 @@ MessageIdsList AuthSessionData::itemsToIds(
}) | ranges::to_vector;
}
MessageIdsList AuthSessionData::groupToIds(
not_null<HistoryMessageGroup*> group) const {
auto result = itemsToIds(group->others);
result.push_back(group->leader->fullId());
return result;
}
AuthSession &Auth() {
auto result = Messenger::Instance().authSession();
Assert(result != nullptr);