搜索:判断某个成员是不是禁言

This commit is contained in:
cbb
2026-02-12 17:51:42 +08:00
parent a040b56c74
commit 2191f46317
16 changed files with 388 additions and 212 deletions

View File

@@ -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) {