setChattingAccount method Null safety

Future<NIMResult<void>> setChattingAccount(
  1. {required String sessionId,
  2. required NIMSessionType sessionType}
)

Reset the unread count of the current conversation (only available for the Android platform). Call the API below to reset the unread count of the current conversation. The SDK will automatically manage the unread count. The API will automatically call clearUnreadCount(String, SessionTypeEnum) to clear the unread count of the current conversation. When a new message is delivered from the chat partner, the unread count will not increase.


account - The chat partner's account; you can also pass in 'all' or 'none'
sessionType - The conversation type. The parameter will be ignored if account is not specific.

Implementation

Future<NIMResult<void>> setChattingAccount({
  required String sessionId,
  required NIMSessionType sessionType,
}) {
  return _platform.setChattingAccount(
      sessionId: sessionId, sessionType: sessionType);
}