1
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-03-31 15:59:54 +00:00

Fix video messages inline playback.

This commit is contained in:
John Preston 2019-03-04 15:38:48 +04:00
parent dafa286b18
commit 2e824ace00

View File

@ -304,7 +304,9 @@ void DocumentOpenClickHandler::Open(
::Data::HandleUnsupportedMedia(data, msgId);
return;
} else if (data->canBePlayed()) {
if (data->isAudioFile() || data->isVoiceMessage()) {
if (data->isAudioFile()
|| data->isVoiceMessage()
|| data->isVideoMessage()) {
Media::Player::instance()->playPause({ data, msgId });
} else {
Core::App().showDocument(data, context);