Skip to main content

Set message pinning. A message in a conversation can be placed at the top as a reminder. Use isTop to distinguish between set pin and remove pin.

API Definition

/**
* set pin status
* @param messageId message ID
* @param conversation identifier of the conversation containing the message
* @param isTop whether the message is pinned
* @param callback result callback
*/
void setTop(String messageId, Conversation conversation, boolean isTop, ISimpleCallback callback);