mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-01 23:00:58 +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);
|
::Data::HandleUnsupportedMedia(data, msgId);
|
||||||
return;
|
return;
|
||||||
} else if (data->canBePlayed()) {
|
} else if (data->canBePlayed()) {
|
||||||
if (data->isAudioFile() || data->isVoiceMessage()) {
|
if (data->isAudioFile()
|
||||||
|
|| data->isVoiceMessage()
|
||||||
|
|| data->isVideoMessage()) {
|
||||||
Media::Player::instance()->playPause({ data, msgId });
|
Media::Player::instance()->playPause({ data, msgId });
|
||||||
} else {
|
} else {
|
||||||
Core::App().showDocument(data, context);
|
Core::App().showDocument(data, context);
|
||||||
|
Loading…
Reference in New Issue
Block a user