chore: replace close_document with close_view (#5033)

This commit is contained in:
Lucas.Xu 2024-04-02 13:36:59 +08:00 committed by GitHub
parent 5a00361207
commit 682f2a6a3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,8 +56,8 @@ class DocumentService {
Future<FlowyResult<void, FlowyError>> 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;
}