clearQueue method

Future<void> clearQueue()

Clears the attachment queue and deletes all attachment files.

Implementation

Future<void> clearQueue() async {
  await _attachmentsService.withContext((context) async {
    await context.clearQueue();
  });
  await _localStorage.clear();
}