2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 16:45:12 +00:00

HistoryMedia always holds a pointer to its parent HistoryItem.

Using local cached data when sending media inline bot results.
This commit is contained in:
John Preston
2016-04-10 18:53:01 +04:00
parent 1fe562ec13
commit fe59c815b2
13 changed files with 673 additions and 576 deletions

View File

@@ -1835,7 +1835,7 @@ void MainWidget::ui_showPeerHistoryAsync(quint64 peerId, qint32 showAtMsgId) {
void MainWidget::ui_autoplayMediaInlineAsync(qint32 channelId, qint32 msgId) {
if (HistoryItem *item = App::histItemById(channelId, msgId)) {
if (HistoryMedia *media = item->getMedia()) {
media->playInline(item, true);
media->playInline(true);
}
}
}