deleteSession method

Future<NIMResult<void>> deleteSession(
  1. {required NIMSessionInfo sessionInfo,
  2. required NIMSessionDeleteType deleteType,
  3. required bool sendAck}
)

删除最近联系人记录。 调用该接口后,会触发MessageService.onSessionDelete通知

deleteType 删除类型,决定是否删除本地记录和漫游记录

sendAck 如果参数合法,是否向其他端标记此会话为已读

Implementation

Future<NIMResult<void>> deleteSession({
  required NIMSessionInfo sessionInfo,
  required NIMSessionDeleteType deleteType,
  required bool sendAck,
}) {
  return _platform.deleteSession(
    sessionInfo: sessionInfo,
    deleteType: deleteType,
    sendAck: sendAck,
  );
}