mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
Merge pull request #854 from AppFlowy-IO/feat/view_lens
This commit is contained in:
@ -4,13 +4,12 @@ use flowy_error::{FlowyError, FlowyResult};
|
||||
use flowy_revision::{
|
||||
RevisionCloudService, RevisionCompactor, RevisionManager, RevisionObjectBuilder, RevisionWebSocket,
|
||||
};
|
||||
use flowy_sync::util::make_delta_from_revisions;
|
||||
use flowy_sync::util::make_text_delta_from_revisions;
|
||||
use flowy_sync::{
|
||||
client_folder::{FolderChangeset, FolderPad},
|
||||
entities::{revision::Revision, ws_data::ServerRevisionWSData},
|
||||
};
|
||||
use lib_infra::future::FutureResult;
|
||||
use lib_ot::core::PhantomAttributes;
|
||||
|
||||
use parking_lot::RwLock;
|
||||
use std::sync::Arc;
|
||||
@ -132,7 +131,7 @@ impl FolderEditor {
|
||||
pub struct FolderRevisionCompactor();
|
||||
impl RevisionCompactor for FolderRevisionCompactor {
|
||||
fn bytes_from_revisions(&self, revisions: Vec<Revision>) -> FlowyResult<Bytes> {
|
||||
let delta = make_delta_from_revisions::<PhantomAttributes>(revisions)?;
|
||||
let delta = make_text_delta_from_revisions(revisions)?;
|
||||
Ok(delta.json_bytes())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user