2
0
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:
John Preston
2018-01-19 15:13:06 +03:00
parent d326c7e3fa
commit e6baf8ef5b
17 changed files with 66 additions and 194 deletions

View File

@@ -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);
}
});
}