Skip to main content

Pinned-message callbacks are included in the message listener.

JIM.getInstance().getMessageManager().addListener("main", new IMessageManager.IMessageListener() {
/// callback triggered when a message is pinned or unpinned
/// message: corresponding message
/// operator: user who performed the pin operation
/// isTop: true false indicates unpinning
void onMessageSetTop(Message message, UserInfo operator, boolean isTop) {

}
});