2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Replaced DocumentOpenClickHandler.

This commit is contained in:
23rd
2021-06-17 00:33:51 +03:00
committed by John Preston
parent 8591d58798
commit 1f816c249b
12 changed files with 31 additions and 35 deletions

View File

@@ -437,9 +437,7 @@ bool OpenMediaTimestamp(
documentId,
time * crl::time(1000));
if (document->isVideoFile()) {
Core::App().showDocument(
document,
session->data().message(itemId));
controller->openDocument(document, itemId, true);
} else if (document->isSong() || document->isVoiceMessage()) {
Media::Player::instance()->play({ document, itemId });
}