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:
parent
dafa286b18
commit
2e824ace00
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user