From 4c7be130942576c911d73b7f8375d26e0b9d1b8e Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Tue, 7 May 2024 11:49:58 +0200 Subject: [PATCH] Fehlerkorrekturen --- lib/content_views/task_list_page.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/content_views/task_list_page.dart b/lib/content_views/task_list_page.dart index fefed87..7e45379 100644 --- a/lib/content_views/task_list_page.dart +++ b/lib/content_views/task_list_page.dart @@ -535,6 +535,10 @@ class _TaskListPageState extends State { message.data = picture.data; MessageService().publish(Constants.messageTopicPublishPayload, arguments: PublishPayloadMessage(topic: "pic", message: message.toJson())); + + await MyApp.isarInstance.writeTxn(() async { + await MyApp.isarInstance.pictures.delete(picture.id); + }); } } });