fix: only encrypt if enable (#3236)

* fix: error page display issue

* fix: override document with empty data

* chore: add logs

* fix: encrypt errors

* fix: encrypt errors
This commit is contained in:
Nathan.fooo
2023-08-18 22:32:51 +08:00
committed by GitHub
parent 23a34af30f
commit de01bf70cd
20 changed files with 171 additions and 106 deletions

View File

@ -224,8 +224,8 @@ pub enum ErrorCode {
#[error("Invalid decryption secret")]
InvalidEncryptSecret = 74,
#[error("Unexpected empty collab updates")]
UnexpectedEmptyCollabUpdates = 75,
#[error("It appears that the collaboration object's data has not been fully synchronized")]
CollabDataNotSync = 75,
}
impl ErrorCode {

View File

@ -88,6 +88,7 @@ impl FlowyError {
unexpect_calendar_field_type,
ErrorCode::UnexpectedCalendarFieldType
);
static_flowy_error!(collab_not_sync, ErrorCode::CollabDataNotSync);
}
impl std::convert::From<ErrorCode> for FlowyError {