diff --git a/client/web/plugins/com.msgbyte.integration/src/IntegrationPanel.tsx b/client/web/plugins/com.msgbyte.integration/src/IntegrationPanel.tsx index b850c319..15b81989 100644 --- a/client/web/plugins/com.msgbyte.integration/src/IntegrationPanel.tsx +++ b/client/web/plugins/com.msgbyte.integration/src/IntegrationPanel.tsx @@ -107,7 +107,7 @@ const IntegrationPanel: React.FC = React.memo(() => {
- {openAppInfo.capability.includes('bot') && ( + {openAppInfo.capability.includes('bot') ? ( + ) : ( + )}
diff --git a/client/web/plugins/com.msgbyte.integration/src/translate.ts b/client/web/plugins/com.msgbyte.integration/src/translate.ts index ad815a29..da7b06c5 100644 --- a/client/web/plugins/com.msgbyte.integration/src/translate.ts +++ b/client/web/plugins/com.msgbyte.integration/src/translate.ts @@ -29,4 +29,8 @@ export const Translate = { 'zh-CN': '添加应用机器人到群组', 'en-US': 'Add app bot to group', }), + cannotAddBot: localTrans({ + 'zh-CN': '该应用机器人没有开放聊天功能', + 'en-US': 'This application does not enable chat feature', + }), };