Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

chore: clippy

Nathand1d598940d1e
diff --git a/frontend/appflowy_flutter/lib/user/application/auth/backend_auth_service.dart b/frontend/appflowy_flutter/lib/user/application/auth/backend_auth_service.dart
index b5cf413603..4d03788c8c 100644
--- a/frontend/appflowy_flutter/lib/user/application/auth/backend_auth_service.dart
+++ b/frontend/appflowy_flutter/lib/user/application/auth/backend_auth_service.dart
@@ -70,7 +70,6 @@ class BackendAuthService implements AuthService {
..name = LocaleKeys.defaultUsername.tr()
..email = userEmail
..password = password
- ..isAnon = true
// When sign up as guest, the auth type is always local.
..authType = AuthenticatorPB.Local
..deviceId = await getDeviceId();
diff --git a/frontend/rust-lib/flowy-user-pub/src/entities.rs b/frontend/rust-lib/flowy-user-pub/src/entities.rs
index fce59b7994..857a735edb 100644
--- a/frontend/rust-lib/flowy-user-pub/src/entities.rs
+++ b/frontend/rust-lib/flowy-user-pub/src/entities.rs
@@ -42,7 +42,6 @@ pub struct SignUpParams {
pub password: String,
pub auth_type: Authenticator,
pub device_id: String,
- pub is_anon: bool,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
diff --git a/frontend/rust-lib/flowy-user/src/entities/auth.rs b/frontend/rust-lib/flowy-user/src/entities/auth.rs
index 09b71eb6d4..dbfd9b811a 100644
--- a/frontend/rust-lib/flowy-user/src/entities/auth.rs
+++ b/frontend/rust-lib/flowy-user/src/entities/auth.rs
@@ -57,9 +57,6 @@ pub struct SignUpPayloadPB {
#[pb(index = 5)]
pub device_id: String,
-
- #[pb(index = 6)]
- pub is_anon: bool,
}
impl TryInto<SignUpParams> for SignUpPayloadPB {
@@ -76,7 +73,6 @@ impl TryInto<SignUpParams> for SignUpPayloadPB {
password: password.0,
auth_type: self.auth_type.into(),
device_id: self.device_id,
- is_anon: self.is_anon,
})
}
}