浏览 SDKs · uni-app / uni-app x
SDKsuni-app

查询未处理入群申请数

查询群管理入口的未处理申请数量。

复制

getGroupApplicationUnhandledCount() 返回数量或 null

import { getGroupApplicationUnhandledCount } from '@/uni_modules/unix-openim-sdk'

const count = await getGroupApplicationUnhandledCount({ offset: 0, count: 100 })
setGroupApplicationCount(count ?? 0)

多端处理会让本地增减漂移,申请事件到达后重新查询权威数量。