2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Use HistoryMedia as view, add Data::Media.

This commit is contained in:
John Preston
2018-01-14 19:02:25 +03:00
parent 97a9089ebf
commit 7425e80f05
66 changed files with 4463 additions and 3130 deletions

View File

@@ -243,9 +243,10 @@ void autoplayMediaInlineAsync(const FullMsgId &msgId) {
if (auto main = App::main()) {
InvokeQueued(main, [msgId] {
if (auto item = App::histItemById(msgId)) {
if (auto media = item->getMedia()) {
media->playInline(true);
}
// #TODO GIFs
//if (auto media = item->getMedia()) {
// media->playInline(true);
//}
}
});
}