deleteAllConversations abstract method

Future<void> deleteAllConversations(
  1. ZIMConversationDeleteConfig config
)

delete all conversations.

Available since: 2.12.0 and above. Description: This interface is invoked when all conversations needs to be deleted. All members in conversations can invoke this interface. Use cases: If you want to delete all conversations when they are no longer needed, you can call this interface implementation. When to call: his parameter is invoked when conversations needs to be deleted and can be invoked after a ZIM instance is created. The call takes effect after login and becomes invalid after logout. Scope of impact: If deleted conversations include unread message will trigger the onConversationTotalUnreadMessageCountUpdated callback, the call is successful at login, and the other end will trigger onConversationsAllDeleted callback. Related callbacks: ZIMConversationsAllDeletedResult

  • config delete all conversation's configuration.

Implementation

Future<void> deleteAllConversations(ZIMConversationDeleteConfig config);