diff --git a/src/common/component/Voice.tsx b/src/common/component/Voice.tsx index 91de2221..827f21a5 100644 --- a/src/common/component/Voice.tsx +++ b/src/common/component/Voice.tsx @@ -22,8 +22,8 @@ const Voice = () => { }); useGetAgoraVoicingListQuery({ appid: agoraConfig?.app_id ?? "", - key: agoraConfig?.rtm_key ?? "", - secret: agoraConfig?.rtm_secret ?? "", + key: agoraConfig?.customer_id ?? "", + secret: agoraConfig?.customer_secret ?? "", }, { skip: !isAdmin || !agoraConfig?.enabled || !navigator.onLine, diff --git a/src/routes/setting/config/Agora.tsx b/src/routes/setting/config/Agora.tsx index 75440386..dc0657a1 100644 --- a/src/routes/setting/config/Agora.tsx +++ b/src/routes/setting/config/Agora.tsx @@ -28,8 +28,8 @@ export default function ConfigAgora() { project_id, app_id, app_certificate, - rtm_key, - rtm_secret, + customer_id, + customer_secret, enabled = false } = values as AgoraConfig; @@ -88,26 +88,26 @@ export default function ConfigAgora() { />