This commit is contained in:
2026-02-23 21:09:36 +07:00
parent 263508b8f7
commit d99dc41be9

View File

@@ -132,7 +132,7 @@ class ChatUI {
});
}
await smartsend(
const { env, msg_json_str } = await smartsend(
`/chat/${this.currentRoom}`,
data,
{
@@ -304,7 +304,7 @@ class FileUploadService {
type: 'binary'
}];
const envelope = await smartsend(
const { env, msg_json_str } = await smartsend(
`/files/${recipient}`,
data,
{
@@ -314,7 +314,7 @@ class FileUploadService {
}
);
return envelope;
return env;
}
async uploadLargeFile(filePath, recipient) {
@@ -833,7 +833,7 @@ class DashboardUI {
async refreshData() {
// Request fresh data
await smartsend("/dashboard/request", [
const { env, msg_json_str } = await smartsend("/dashboard/request", [
{ dataname: "request", data: { type: "refresh" }, type: "dictionary" }
], {
fileserverUrl: window.config.fileserver_url