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
1 changed files with 1 additions and 1 deletions

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)) {