Browse SDKs · uni-app / uni-app x
SDKsuni-app

Hide all conversations

OpenIM uni-app / uni-app x SDK guide for Hide all conversations.

Copy

hideAllConversations() hides every current conversation for the signed-in account without deleting message history.

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

await hideAllConversations()

This is a wide-scope list operation; ask for confirmation. Promise success means that Core completed the current local reset. It does not delete local or server messages, groups, friend relationships, or another client's conversation state.

A later new message or valid resynchronization can make a conversation appear again. After completion, requery both the conversation list and the total unread count. Do not interpret Promise success as a remote event or permanent deletion.