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.

313 B
Raw Blame
use client_api::entity::AFUserProfile;

use flowy_user_pub::entities::EncryptionType;

pub fn encryption_type_from_profile(profile: &AFUserProfile) -> EncryptionType {
  match &profile.encryption_sign {
    Some(e) => EncryptionType::SelfEncryption(e.to_string()),
    None => EncryptionType::NoEncryption,
  }
}