mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Use HistoryMedia as view, add Data::Media.
This commit is contained in:
@@ -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);
|
||||
//}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user