Skip to content

Commit 5f93c40

Browse files
authored
Merge pull request #333 from iceljc/features/refine-chat-window
fix data image
2 parents ec88fcd + 80a4c74 commit 5f93c40

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/common/MessageFileGallery.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import { isAudio, AUDIO_ICON } from '$lib/helpers/utils/file';
77
import { isExternalUrl } from '$lib/helpers/utils/common';
88
import AudioGallery from './AudioGallery.svelte';
9+
import { IMAGE_DATA_PREFIX } from '$lib/helpers/constants';
910
1011
/** @type {string} */
1112
export let galleryClasses = '';
@@ -53,7 +54,7 @@
5354
});
5455
}
5556
56-
if (appendImage && message?.data) {
57+
if (appendImage && message?.data && message?.data?.startsWith(IMAGE_DATA_PREFIX)) {
5758
textFiles = [...textFiles, {
5859
file_name: 'data',
5960
file_extension: '',

0 commit comments

Comments
 (0)