@tencentcloud/ai-desk-customer-uniapp
Version:
uni-app Vue2/Vue3 UIKit for AI Desk
10 lines (8 loc) • 356 B
text/typescript
import TUIChatEngine, { IMessageModel } from '../../../../../@aidesk/uikit-engine';
import { isCustomerServicePluginMessage } from './message-desk-elements/index';
export function isPluginMessage(message: IMessageModel): boolean {
return (
message.type === TUIChatEngine.TYPES.MSG_CUSTOM
&& isCustomerServicePluginMessage(message as any)
);
}