2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Fix build on GCC.

This commit is contained in:
John Preston
2019-03-01 18:41:10 +04:00
parent a8aa66d191
commit 8171828c2a
12 changed files with 38 additions and 26 deletions

View File

@@ -309,7 +309,6 @@ void DocumentOpenClickHandler::Open(
return;
}
if (!location.isEmpty() || (!data->data().isEmpty() && (playVoice || playAnimation))) {
using State = Media::Player::State;
if (playVoice) {
Media::Player::instance()->playPause({ data, msgId });
} else if (data->size < App::kImageSizeLimit) {
@@ -723,7 +722,6 @@ void DocumentData::performActionOnLoad() {
return;
}
}
using State = Media::Player::State;
if (playVoice || playMusic) {
DocumentOpenClickHandler::Open({}, this, item, ActionOnLoadNone);
} else if (playAnimation) {