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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user