remove method

  1. @override
Future<void> remove(
  1. ChatId id, {
  2. bool force = false,
})
override

Removes a Chat identified by the provided id from the chats.

Implementation

@override
Future<void> remove(ChatId id, {bool force = false}) async {
  Log.debug('remove($id)', '$runtimeType');

  chats.remove(id)?.dispose();
  paginated.remove(id)?.dispose();
  _pagination?.remove(id);
  await _chatLocal.delete(id);
}