resetMyHistory method Null safety

Future<void> resetMyHistory()

Resets (clear) any previous messages on this channel.

Implementation

Future<void> resetMyHistory() async {
  final offset =
      await _sdk.api.resetGroupChannelHistory(channelUrl: channelUrl);
  if (offset != null) {
    messageOffsetTimestamp = offset;
  }
}