搜索:判断某个成员是不是禁言
This commit is contained in:
@@ -305,23 +305,31 @@
|
||||
// }
|
||||
|
||||
getRandomGroup().then(async (id: any) => {
|
||||
const res = await TUIGroupService.createGroup({
|
||||
...options,
|
||||
groupID: id.data,
|
||||
avatar: groupAvatar.value
|
||||
})
|
||||
const { type } = res.data.group
|
||||
if (type === TUIChatEngine.TYPES.GRP_AVCHATROOM) {
|
||||
await TUIGroupService.joinGroup({
|
||||
groupID: res.data.group.groupID,
|
||||
applyMessage: ''
|
||||
try {
|
||||
const res = await TUIGroupService.createGroup({
|
||||
...options,
|
||||
groupID: id.data + '',
|
||||
avatar: groupAvatar.value
|
||||
})
|
||||
const { type } = res.data.group
|
||||
if (type === TUIChatEngine.TYPES.GRP_AVCHATROOM) {
|
||||
await TUIGroupService.joinGroup({
|
||||
groupID: res.data.group.groupID,
|
||||
applyMessage: ''
|
||||
})
|
||||
}
|
||||
handleCompleteCreate(res.data.group)
|
||||
Toast({
|
||||
message: TUITranslateService.t('TUIGroup.群组创建成功'),
|
||||
type: TOAST_TYPE.SUCCESS
|
||||
})
|
||||
} catch (err) {
|
||||
console.log('创建失败 = ', err)
|
||||
Toast({
|
||||
message: '创建失败',
|
||||
type: TOAST_TYPE.ERROR
|
||||
})
|
||||
}
|
||||
handleCompleteCreate(res.data.group)
|
||||
Toast({
|
||||
message: TUITranslateService.t('TUIGroup.群组创建成功'),
|
||||
type: TOAST_TYPE.SUCCESS
|
||||
})
|
||||
})
|
||||
} catch (err: any) {
|
||||
if (err.code === 10025) {
|
||||
|
||||
Reference in New Issue
Block a user