yt-chat-components 1.4.5 → 1.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -520,17 +520,26 @@ export default function ChatWindow({
|
|
|
520
520
|
setReceivingMessage(true);
|
|
521
521
|
}
|
|
522
522
|
|
|
523
|
-
let userInfoClone = userInfo;
|
|
523
|
+
let userInfoClone = {...userInfo};
|
|
524
524
|
if(isEmpty(userInfoClone.code)) {
|
|
525
525
|
userInfoClone.code = sessionId;
|
|
526
526
|
}
|
|
527
527
|
const code = userInfoClone['code'] ? userInfoClone['code'] : ""
|
|
528
|
+
const name = userInfoClone['name'] ? userInfoClone['name'] : ""
|
|
529
|
+
const dw_code = userInfoClone['dw_code'] ? userInfoClone['dw_code'] : ""
|
|
530
|
+
const dw_name = userInfoClone['dw_name'] ? userInfoClone['dw_name'] : ""
|
|
531
|
+
const p_suffix = userInfoClone['p_suffix'] ? userInfoClone['p_suffix'] : ""
|
|
532
|
+
|
|
528
533
|
let embedAppExtend: embedAppExtend = {
|
|
529
534
|
operator_id: code,
|
|
530
535
|
upload_file_path_list: [],
|
|
531
536
|
http_extend: {
|
|
532
537
|
bd:{
|
|
533
|
-
code
|
|
538
|
+
code,
|
|
539
|
+
name,
|
|
540
|
+
dw_code,
|
|
541
|
+
dw_name,
|
|
542
|
+
p_suffix,
|
|
534
543
|
},
|
|
535
544
|
body: {
|
|
536
545
|
code: code,
|