From 682f2a6a3be3c789f860697ac2b6e6853cfc5cbd Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Tue, 2 Apr 2024 13:36:59 +0800 Subject: [PATCH] chore: replace close_document with close_view (#5033) --- .../lib/plugins/document/application/doc_service.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart b/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart index 7c7f09ddf6..cf60a3c474 100644 --- a/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart +++ b/frontend/appflowy_flutter/lib/plugins/document/application/doc_service.dart @@ -56,8 +56,8 @@ class DocumentService { Future> closeDocument({ required ViewPB view, }) async { - final payload = CloseDocumentPayloadPB()..documentId = view.id; - final result = await DocumentEventCloseDocument(payload).send(); + final payload = ViewIdPB()..value = view.id; + final result = await FolderEventCloseView(payload).send(); return result; }