pub fn can_view_file( record: &ChatFileRecord, viewer_did: &str, participant_dids: &[String], ) -> bool