deleteAllConversations abstract method

Future<void> deleteAllConversations(
  1. ZIMConversationDeleteConfig config
)

Available since: 2.12.0 and above.

Description: This interface is invoked when all sessions needs to be deleted. All members in sessions can invoke this interface.

Use cases: If you want to delete all sessions when they are no longer needed, you can call this interface implementation.

When to call /Trigger: his parameter is invoked when sessions 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.

Impacts on other APIs: If deleted sessions include unread message will trigger the onConversationTotalUnreadMessageCountUpdated callback, the call is successful at login, and the other end will trigger onConversationsAllDeleted callback.

Related callbacks: ZIMConversationsAllDeletedCallback

Implementation

Future<void> deleteAllConversations(ZIMConversationDeleteConfig config);