Timothy J. Baek 10 months ago
parent
commit
e3668a2f1c
1 changed files with 1 additions and 6 deletions
  1. 1 6
      src/lib/components/chat/Messages/UserMessage.svelte

+ 1 - 6
src/lib/components/chat/Messages/UserMessage.svelte

@@ -104,12 +104,7 @@
 									type="button"
 									on:click={async () => {
 										if (file?.url) {
-											getFileContentById(file.id).then((blob) => {
-												if (blob) {
-													const url = URL.createObjectURL(blob);
-													window.open(url, '_blank').focus();
-												}
-											});
+											window.open(`${file?.url}/content`, '_blank').focus();
 										}
 									}}
 								>