deleteAllMessageAndConversation method
- bool clearServerData = false,
Clears all conversations and all messages in them.
Param clearServerData
Whether to clear the server data.
- true: Clear the server data.
- false: (default) Do not clear the server data.
Implementation
Future<void> deleteAllMessageAndConversation({
bool clearServerData = false,
}) async {
Map result = await ChatChannel.invokeMethod(
ChatMethodKeys.deleteAllMessageAndConversation,
{'clearServerData': clearServerData},
);
try {
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}