This commit is contained in:
bobobobo
2026-02-12 20:25:35 +08:00
parent 2191f46317
commit 2f1b592772
7 changed files with 158 additions and 21 deletions

View File

@@ -16,6 +16,7 @@ import OfflinePushInfoManager, {
} from '../offlinePushInfoManager/index'
import { useAuthUser } from '../../../../composables/useAuthUser'
import { useUI } from '../../../../utils/use-ui'
import { getGroupBanList } from '../../../../api'
export const sendMessageErrorCodeMap: Map<number, string> = new Map([
[3123, '文本包含本地审核拦截词'],
@@ -130,6 +131,21 @@ export const sendMessages = async (
showDialog('提示', '当前群组已全员禁言', false)
} else {
// 判断某个成员是不是禁言
const list = await getGroupBanList(
currentConversation?.groupProfile?.groupID
)
const show = list.data.MutedAccountList.find(
(v: any) =>
v.Member_Account === tencentUserSig.value.userId
)
if (show?.Member_Account) {
showDialog('提示', '你被禁言了', false)
} else {
await TUIChatService.sendTextMessage(
options,
sendMessageOptions
)
}
}
} else {
await TUIChatService.sendTextMessage(