Skip to content

Commit

Permalink
chore: bring back changes
Browse files Browse the repository at this point in the history
  • Loading branch information
olafsulich committed Feb 14, 2025
1 parent c0b11b1 commit 4074537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ const ContentAsset = ({
);
case AssetType.FILE:
if ((asset as FileAssetType).isFile()) {
return <FileAsset message={message} />;
return <FileAsset message={message} isFocusable={isMessageFocused} />;
}

if ((asset as FileAssetType).isAudio()) {
return <AudioAsset message={message} isFocusable={isMessageFocused} />;
}

if ((asset as FileAssetType).isVideo()) {
return <VideoAsset message={message} />;
return <VideoAsset message={message} isFocusable={isMessageFocused} />;
}

case AssetType.IMAGE:
Expand Down
1 change: 1 addition & 0 deletions src/script/entity/message/Asset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export class Asset {
public file_name?: string;
public id?: string;
public key: string;
public size: string;
public type: string;
public text: string;

Expand Down

0 comments on commit 4074537

Please sign in to comment.