2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Start video when moving to it in media viewer.

Fixes #5796.
This commit is contained in:
John Preston
2019-03-18 11:44:47 +04:00
parent 6c382c647c
commit c0959ceaeb

View File

@@ -3110,7 +3110,7 @@ bool OverlayWidget::moveToEntity(const Entity &entity, int preloadDelta) {
setContext(std::nullopt);
}
clearStreaming();
_streamingStartPaused = true;
_streamingStartPaused = false;
if (auto photo = base::get_if<not_null<PhotoData*>>(&entity.data)) {
displayPhoto(*photo, entity.item);
} else if (auto document = base::get_if<not_null<DocumentData*>>(&entity.data)) {