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