mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix layout of some media, enable GIF autoplay.
This commit is contained in:
@@ -242,11 +242,8 @@ bool isLayerShown() {
|
||||
void autoplayMediaInlineAsync(const FullMsgId &msgId) {
|
||||
if (auto main = App::main()) {
|
||||
InvokeQueued(main, [msgId] {
|
||||
if (auto item = App::histItemById(msgId)) {
|
||||
// #TODO GIFs
|
||||
//if (auto media = item->getMedia()) {
|
||||
// media->playInline(true);
|
||||
//}
|
||||
if (const auto item = App::histItemById(msgId)) {
|
||||
Auth().data().requestItemPlayInline(item);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user