2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Playing game state is set for 10 seconds instead of 30.

Also moved some icons from sprite to separate b&w files.
This commit is contained in:
John Preston
2016-09-30 19:40:00 +03:00
parent 2ebab6a13c
commit 886327a1d0
21 changed files with 77 additions and 45 deletions

View File

@@ -5844,7 +5844,9 @@ void HistoryWidget::botCallbackDone(BotCallbackInfo info, const MTPmessages_BotC
if (info.game) {
url = appendShareGameScoreUrl(url, info.msgId);
BotGameUrlClickHandler(info.bot, url).onClick(Qt::LeftButton);
updateSendAction(item->history(), SendActionPlayGame);
if (item && (!item->history()->peer->isChannel() || item->history()->peer->isMegagroup())) {
updateSendAction(item->history(), SendActionPlayGame);
}
} else {
UrlClickHandler(url).onClick(Qt::LeftButton);
}