refactor: update externalName references in widget configuration and SDK

This commit is contained in:
mlogclub
2026-04-27 16:51:13 +08:00
parent cd9de63860
commit bc98fc572f
6 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ export function createImRealtimeConnection() {
(config.externalSource ?? "web_chat").trim() || "web_chat"
)
const channelId = encodeURIComponent(config.channelId || "")
const externalName = (config.subject ?? "").trim()
const externalName = (config.externalName ?? "").trim()
const nameQuery =
externalName !== ""
? `&externalName=${encodeURIComponent(externalName)}`