mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Added timestamp highlighting in voice captions.
This commit is contained in:
@@ -1498,7 +1498,10 @@ TextWithEntities HistoryMessage::withLocalEntities(
|
||||
const auto document = reply->replyToDocumentId
|
||||
? history()->owner().document(reply->replyToDocumentId).get()
|
||||
: nullptr;
|
||||
if (document && (document->isVideoFile() || document->isSong())) {
|
||||
if (document
|
||||
&& (document->isVideoFile()
|
||||
|| document->isSong()
|
||||
|| document->isVoiceMessage())) {
|
||||
using namespace HistoryView;
|
||||
const auto duration = document->getDuration();
|
||||
const auto base = (duration > 0)
|
||||
|
Reference in New Issue
Block a user