|
|
|
@ -167,7 +167,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage, channel }) => {
|
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
|
const loginUser = useAuthStore((state) => state.loginUser);
|
|
|
|
|
const { whatsAppBusiness } = loginUser;
|
|
|
|
|
loginUser.usernameEN = loginUser.accountList[0].OPI_NameEN.split(' ')?.[0] || loginUser.username;
|
|
|
|
|
loginUser.usernameEN = (loginUser.accountList[0]?.OPI_NameEN || '').split(' ')?.[0] || loginUser.username;
|
|
|
|
|
const currentConversation = useConversationStore((state) => state.currentConversation);
|
|
|
|
|
const templates = useConversationStore((state) => state.templates);
|
|
|
|
|
|
|
|
|
@ -318,7 +318,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage, channel }) => {
|
|
|
|
|
...(Object.keys(templateLangMapped).map(lang => ({
|
|
|
|
|
key: lang, label: lang.toUpperCase(), children: <CategoryList key={'lang-templates-'+lang} dataSource={templateLangMapped[lang]} {...{ handleSendTemplate, activeInput, onInput, valueMapped}} />
|
|
|
|
|
})))
|
|
|
|
|
]} defaultActiveKey='utility' tabBarExtraContent={{right: <Alert type='info' message={channel==='waba'?'为提升账号质量, 请尽量使用跟进模板': '模板消息将用纯文本发送'} showIcon className='py-0' />, }} size='small' />
|
|
|
|
|
]} defaultActiveKey='utility' tabBarExtraContent={{right: <Alert type='info' message={channel==='waba'?'为提升账号质量, 请尽量使用"触达率高"模板': '模板消息将用纯文本发送'} showIcon className='py-0' />, }} size='small' />
|
|
|
|
|
) :
|
|
|
|
|
(
|
|
|
|
|
// Search result
|
|
|
|
|