revokeMessage abstract method

Available sinces: 2.5.0 and above.

Detail description: This method implements the function of revoking messages.

Use cases: The user needs to recall a message. This method can be used when the user does not want other users to see the message.

When to call: Called when the message needs to be revoked.

Note: Room message revoke is not supported.

Restrictions: Effective after login.

Related callbacks: If the revoked message is the latest message of the session, the ZIMEventHandler.onConversationChanged callback will be triggered, and if the message is unread, the ZIMEventHandler.onConversationTotalUnreadMessageCountUpdated callback will be triggered.

Implementation

Future<ZIMMessageRevokedResult> revokeMessage (
    ZIMMessage message, ZIMMessageRevokeConfig config);