diff --git a/apps/client/src/widgets/dialogs/revisions.tsx b/apps/client/src/widgets/dialogs/revisions.tsx index e0d82ed47..2f10b6233 100644 --- a/apps/client/src/widgets/dialogs/revisions.tsx +++ b/apps/client/src/widgets/dialogs/revisions.tsx @@ -285,7 +285,7 @@ function RevisionContentText({ content }: { content: string | Buffer;; + return ; } function RevisionContentDiff({ noteContent, itemContent, itemType }: { @@ -372,9 +372,9 @@ function FilePreview({ revisionItem, fullRevision }: { revisionItem: RevisionIte {t("revisions.preview")} - {fullRevision.content - ?
{fullRevision.content}
- :
{t("revisions.preview_not_available")}
} +
+ +
@@ -382,6 +382,23 @@ function FilePreview({ revisionItem, fullRevision }: { revisionItem: RevisionIte ); } +function FilePreviewInner({ revisionItem, fullRevision }: { revisionItem: RevisionItem, fullRevision: RevisionPojo }) { + if (revisionItem.mime.startsWith("audio/")) { + return ( +