更新
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export const AVATAR = {
|
||||
C2C: 'https://web.sdk.qcloud.com/component/TUIKit/assets/avatar_16.png',
|
||||
GROUP: 'https://web.sdk.qcloud.com/im/demo/TUIkit/web/img/constomer.png',
|
||||
SYSTEM: 'https://web.sdk.qcloud.com/component/TUIKit/assets/group_avatar.png',
|
||||
};
|
||||
@@ -0,0 +1,18 @@
|
||||
// 商业化能力位文档:https://iwiki.woa.com/pages/viewpage.action?pageId=717923757
|
||||
interface ICommercialAbility {
|
||||
enabledMessageReadReceipt: number;
|
||||
enabledEmojiPlugin: number;
|
||||
enabledOnlineStatus: number;
|
||||
enabledCustomerServicePlugin: number;
|
||||
enabledTranslationPlugin: number;
|
||||
enabledVoiceToText: number;
|
||||
[key: string]: number;
|
||||
}
|
||||
export const commercialAbility: ICommercialAbility = {
|
||||
enabledMessageReadReceipt: Math.pow(2, 5),
|
||||
enabledEmojiPlugin: Math.pow(2, 48),
|
||||
enabledOnlineStatus: Math.pow(2, 7),
|
||||
enabledCustomerServicePlugin: Math.pow(2, 40),
|
||||
enabledTranslationPlugin: Math.pow(2, 38),
|
||||
enabledVoiceToText: Math.pow(2, 39),
|
||||
};
|
||||
@@ -0,0 +1,4 @@
|
||||
export const CHAT_IGNORE_KEYS = [
|
||||
'translateTextInfo',
|
||||
'voiceToTextInfo',
|
||||
];
|
||||
@@ -0,0 +1,4 @@
|
||||
export * from './avatar';
|
||||
export * from './commercial-ability';
|
||||
export * from './not-notify-list';
|
||||
export * from './ignore-store-key';
|
||||
@@ -0,0 +1,6 @@
|
||||
// 注册监听时如果列表数据为空不触发 callback
|
||||
export const notNotifyList = [
|
||||
'messageList',
|
||||
'conversationList',
|
||||
'newMessageList',
|
||||
];
|
||||
Reference in New Issue
Block a user