SDKsWASM
Reset group mention status
Reset a conversation’s group mention status after the user handles mentioned messages.
After the user handles mentioned messages in a group chat, reset the conversation's groupAtType to its normal state:
import { GroupAtType } from '@openim/wasm-client-sdk';
await openimsdk.setConversation({
conversationID,
groupAtType: GroupAtType.AtNormal,
});groupAtType is a reminder state the SDK derives from group messages. This operation only resets it to the normal state. Do not use it to fabricate AtMe, AtAll, or another state that did not occur. Resetting group mention state and marking messages as read are separate operations.
After the Promise succeeds, continue to merge the conversation from OnConversationChanged. See Get the conversation list for the complete listener.
Was this page helpful?