deleteMessagesBefore method
- int timestamp
Deletes messages with the 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 {
try {
Map result = await platform_interface.Client.instance.chatManager.callNativeMethod(
ChatMethodKeys.deleteMessagesBeforeTimestamp,
{"timestamp": timestamp});
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}