{{ TUITranslateService.t('TUIChat.[自定义消息]') }}
@@ -164,270 +165,309 @@
diff --git a/TUIKit/components/TUIContact/utils/index.ts b/TUIKit/components/TUIContact/utils/index.ts
index 1cc7b6f..7e0c19a 100644
--- a/TUIKit/components/TUIContact/utils/index.ts
+++ b/TUIKit/components/TUIContact/utils/index.ts
@@ -250,7 +250,23 @@ export const refuseFriendApplication = (userID: string) => {
// Dismiss group
export const dismissGroup = (groupID: string) => {
- deleteImGroup(groupID)
+ // deleteImGroup(groupID)
+ // .then(() => {
+ // Toast({
+ // message: TUITranslateService.t('TUIContact.解散群聊成功'),
+ // type: TOAST_TYPE.SUCCESS
+ // })
+ // TUIGlobal?.updateContactSearch && TUIGlobal?.updateContactSearch()
+ // switchTab('/TUIKit/components/TUIConversation/index')
+ // })
+ // .catch((error: any) => {
+ // console.warn('dismiss group failed:', error)
+ // Toast({
+ // message: TUITranslateService.t('TUIContact.解散群聊失败'),
+ // type: TOAST_TYPE.ERROR
+ // })
+ // })
+ TUIGroupService.dismissGroup(groupID)
.then(() => {
Toast({
message: TUITranslateService.t('TUIContact.解散群聊成功'),
@@ -266,33 +282,34 @@ export const dismissGroup = (groupID: string) => {
type: TOAST_TYPE.ERROR
})
})
- // TUIGroupService.dismissGroup(groupID)
- // .then(() => {
- // Toast({
- // message: TUITranslateService.t('TUIContact.解散群聊成功'),
- // type: TOAST_TYPE.SUCCESS,
- // });
- // TUIGlobal?.updateContactSearch && TUIGlobal?.updateContactSearch();
- // })
- // .catch((error: any) => {
- // console.warn('dismiss group failed:', error);
- // Toast({
- // message: TUITranslateService.t('TUIContact.解散群聊失败'),
- // type: TOAST_TYPE.ERROR,
- // });
- // });
}
// Quit group
export const quitGroup = (groupID: string) => {
- console.log('222')
- quitImGroup(groupID)
+ // console.log('222')
+ // quitImGroup(groupID)
+ // .then(() => {
+ // Toast({
+ // message: TUITranslateService.t('TUIContact.退出群组成功'),
+ // type: TOAST_TYPE.SUCCESS
+ // })
+
+ // switchTab('/TUIKit/components/TUIConversation/index')
+ // })
+ // .catch((error: any) => {
+ // console.warn('quit group failed:', error)
+ // Toast({
+ // message: TUITranslateService.t('TUIContact.退出群组失败'),
+ // type: TOAST_TYPE.ERROR
+ // })
+ // })
+
+ TUIGroupService.quitGroup(groupID)
.then(() => {
Toast({
message: TUITranslateService.t('TUIContact.退出群组成功'),
type: TOAST_TYPE.SUCCESS
})
-
switchTab('/TUIKit/components/TUIConversation/index')
})
.catch((error: any) => {
@@ -302,21 +319,6 @@ export const quitGroup = (groupID: string) => {
type: TOAST_TYPE.ERROR
})
})
-
- // TUIGroupService.quitGroup(groupID)
- // .then(() => {
- // Toast({
- // message: TUITranslateService.t('TUIContact.退出群组成功'),
- // type: TOAST_TYPE.SUCCESS,
- // });
- // })
- // .catch((error: any) => {
- // console.warn('quit group failed:', error);
- // Toast({
- // message: TUITranslateService.t('TUIContact.退出群组失败'),
- // type: TOAST_TYPE.ERROR,
- // });
- // });
}
// Join group
diff --git a/TUIKit/components/TUIConversation/conversation-list/index.vue b/TUIKit/components/TUIConversation/conversation-list/index.vue
index 78e9493..7483570 100644
--- a/TUIKit/components/TUIConversation/conversation-list/index.vue
+++ b/TUIKit/components/TUIConversation/conversation-list/index.vue
@@ -1,8 +1,5 @@
-
+