resetMyHistory method

Future<void> resetMyHistory()

Resets the chat history of this channel for the current User. After this call, the messages created before the call will not be loaded.

Implementation

Future<void> resetMyHistory() async {
  sbLog.i(StackTrace.current);

  final offset = await chat.apiClient
      .send(GroupChannelHistoryResetRequest(chat, channelUrl: channelUrl));
  if (offset != null) {
    messageOffsetTimestamp = offset;
  }
}