clearHistory method

dynamic clearHistory([
  1. String? convID
])

Clear the history of current conversation; Please provide convID, if you use TIMUIKitChatController without specifying to a TIMUIKitChat.

Implementation

clearHistory([String? convID]) {
  if (convID != null) {
    return globalChatModel.setMessageList(convID, []);
  }
  return model?.clearHistory();
}