mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: replace close_document with close_view (#5033)
This commit is contained in:
parent
5a00361207
commit
682f2a6a3b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user