mirror of https://github.com/procxx/kepka.git
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