SDKsuni-app
Reject a friend request
Reject a friend request from a selected user.
import { refuseFriendApplication } from '@/uni_modules/unix-openim-sdk'
await refuseFriendApplication({ toUserID: 'user_b', handleMsg: 'Not now' })The handling message may be visible to the requester, so omit internal risk decisions and sensitive data. Confirm through onFriendApplicationRejected or a fresh request query. Acceptance and rejection are mutually exclusive; lock the UI action while one request is active.
Was this page helpful?