mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user