deleteMessagesBefore method
- int timestamp
Deletes messages with timestamp that is before the specified one.
Param timestamp
The specified Unix timestamp(milliseconds).
Throws A description of the exception. See ChatError.
Implementation
Future<void> deleteMessagesBefore(int timestamp) async {
Map result = await ChatChannel.invokeMethod(
ChatMethodKeys.deleteMessagesBeforeTimestamp, {"timestamp": timestamp});
try {
ChatError.hasErrorFromResult(result);
} on ChatError catch (e) {
throw e;
}
}