diff --git a/src/views/Conversations/Online/ReplyWrapper.jsx b/src/views/Conversations/Online/ReplyWrapper.jsx
index 19f059d..37eebce 100644
--- a/src/views/Conversations/Online/ReplyWrapper.jsx
+++ b/src/views/Conversations/Online/ReplyWrapper.jsx
@@ -10,7 +10,7 @@ import useStyleStore from '@/stores/StyleStore';
import { isEmpty } from '@/utils/commons';
import { DEFAULT_CHANNEL } from '@/config';
import { WABAccounts, WABAccountsMapped } from '@/channel/bubbleMsgUtils';
-import useAuthStore from '@/stores/AuthStore';
+import useAuthStore, { PERM_USE_WHATSAPP } from '@/stores/AuthStore';
/**
* @ignore
@@ -72,12 +72,31 @@ const ReplyWrapper = () => {
const replyTypes = [
// { key: 'waba', label: mobile ? '' : (), icon: , children: },
- { key: 'waba', label: mobile ? '' : `商业号(${WABAccountsMapped[whatsAppBusiness]?.verifiedName || '-'})`, icon: , children: },
- { key: 'email', label: mobile ? '' : '邮件', icon: , children: },
- // { key: 'whatsapp', label: mobile ? '' : 'WhatsApp', icon: , children: },
- { key: 'wa', label: mobile ? '' : 'WhatsApp', icon: , children:
正在开发……敬请期待
},
+ {
+ key: 'waba',
+ label: mobile ? '' : `商业号(${WABAccountsMapped[whatsAppBusiness]?.verifiedName || '-'})`,
+ icon: ,
+ children: ,
+ },
+ { key: 'email', label: mobile ? '' : '邮件', icon: , children: },
+ {
+ key: 'whatsapp',
+ label: mobile ? '' : 'WhatsApp',
+ icon: ,
+ children: isPermitted(PERM_USE_WHATSAPP) ? (
+
+ ) : (
+ 正在开发……敬请期待
+ ),
+ },
+ // {
+ // key: 'wa',
+ // label: mobile ? '' : 'WhatsApp',
+ // icon: ,
+ // children: 正在开发……敬请期待
,
+ // },
// TODO: ⬆️WA未登录,要提示用户到个人页面扫码
- ];
+ ]
return (