mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Pass Main::Session to click handler creators.
This commit is contained in:
@@ -407,7 +407,7 @@ HistoryService::PreparedText HistoryService::prepareGameScoreText() {
|
||||
auto result = PreparedText {};
|
||||
auto gamescore = Get<HistoryServiceGameScore>();
|
||||
|
||||
auto computeGameTitle = [gamescore, &result]() -> QString {
|
||||
auto computeGameTitle = [&]() -> QString {
|
||||
if (gamescore && gamescore->msg) {
|
||||
if (const auto media = gamescore->msg->media()) {
|
||||
if (const auto game = media->game()) {
|
||||
@@ -415,6 +415,7 @@ HistoryService::PreparedText HistoryService::prepareGameScoreText() {
|
||||
const auto column = 0;
|
||||
result.links.push_back(
|
||||
std::make_shared<ReplyMarkupClickHandler>(
|
||||
&history()->owner(),
|
||||
row,
|
||||
column,
|
||||
gamescore->msg->fullId()));
|
||||
|
Reference in New Issue
Block a user