diff --git a/package.json b/package.json index 78d0a679..4da07a77 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vocechat-web", - "version": "0.8.6", + "version": "0.8.7", "homepage": "https://voce.chat", "dependencies": { "@metamask/onboarding": "^1.0.1", diff --git a/src/routes/setting/Overview/UserMsgEmailNotify.tsx b/src/routes/setting/Overview/UserMsgEmailNotify.tsx index 854716a6..4d6ec424 100644 --- a/src/routes/setting/Overview/UserMsgEmailNotify.tsx +++ b/src/routes/setting/Overview/UserMsgEmailNotify.tsx @@ -7,14 +7,11 @@ import toast from "react-hot-toast"; import { shallowEqual } from "react-redux"; import ServerVersionChecker from "@/components/ServerVersionChecker"; import Toggle from "@/components/styled/Toggle"; -import useConfig from "@/hooks/useConfig"; -import { SMTPConfig } from "@/types/server"; import { useUpdateInfoMutation } from "@/app/services/user"; type Props = {}; const UserMsgEmailNotify = ({}: Props) => { const [updateInfo, { isSuccess }] = useUpdateInfoMutation(); - const { values } = useConfig("smtp"); const { t } = useTranslation("setting"); const { t: ct } = useTranslation(); const { refetch } = useGetSystemCommonQuery(); @@ -33,13 +30,6 @@ const UserMsgEmailNotify = ({}: Props) => { } }, [isSuccess]); const toggleEnable = () => { - if (!msgNotify) { - // 检查下 SMTP 开关 - if (!(values as SMTPConfig).enabled) { - toast.error("Enable SMTP first!"); - return; - } - } updateInfo({ msg_smtp_notify_enable: !msgNotify }); }; if (!ServerMsgNotify) return null;