We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec88fcd + 80a4c74 commit 5f93c40Copy full SHA for 5f93c40
src/lib/common/MessageFileGallery.svelte
@@ -6,6 +6,7 @@
6
import { isAudio, AUDIO_ICON } from '$lib/helpers/utils/file';
7
import { isExternalUrl } from '$lib/helpers/utils/common';
8
import AudioGallery from './AudioGallery.svelte';
9
+ import { IMAGE_DATA_PREFIX } from '$lib/helpers/constants';
10
11
/** @type {string} */
12
export let galleryClasses = '';
@@ -53,7 +54,7 @@
53
54
});
55
}
56
- if (appendImage && message?.data) {
57
+ if (appendImage && message?.data && message?.data?.startsWith(IMAGE_DATA_PREFIX)) {
58
textFiles = [...textFiles, {
59
file_name: 'data',
60
file_extension: '',
0 commit comments