diff --git a/src/lib/common/MessageImageGallery.svelte b/src/lib/common/MessageFileGallery.svelte
similarity index 100%
rename from src/lib/common/MessageImageGallery.svelte
rename to src/lib/common/MessageFileGallery.svelte
diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
index 5a02f5b3..5697170b 100644
--- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
+++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
@@ -42,7 +42,7 @@
import RichContent from './rich-content/rich-content.svelte';
import RcMessage from "./rich-content/rc-message.svelte";
import RcDisclaimer from './rich-content/rc-disclaimer.svelte';
- import MessageImageGallery from '$lib/common/MessageImageGallery.svelte';
+ import MessageFileGallery from '$lib/common/MessageFileGallery.svelte';
import ChatImageUploader from './chat-util/chat-image-uploader.svelte';
import ChatImageGallery from './chat-util/chat-image-gallery.svelte';
import PersistLog from './persist-log/persist-log.svelte';
@@ -444,7 +444,7 @@
// @ts-ignore
postback: {
...postback,
- payload: `${postback?.payload || msgText || ''} ${filePayload}`
+ payload: `${postback?.payload || msgText || ''}\r\n${filePayload}`
}
};
}
@@ -470,7 +470,7 @@
// @ts-ignore
postback: {
...postback,
- payload: `${postback?.payload || msgText || ''} ${filePayload}`
+ payload: `${postback?.payload || msgText || ''}\r\n${filePayload}`
}
};
}
@@ -623,7 +623,7 @@
if (audioCount > 0) {
fileStrs.push(`${audioCount} audio ${audioCount > 1 ? 'files' : 'file'}`);
}
- return prefix + fileStrs.join(' and ');
+ return prefix + fileStrs.join(' and ') + '.';
}
function endChat() {
@@ -1083,7 +1083,7 @@