1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2025-06-20 16:35:17 +00:00

Return user account image

This commit is contained in:
2020-05-26 18:45:27 +02:00
parent 11865c2bb4
commit 2b1161c3f0
3 changed files with 36 additions and 7 deletions

View File

@ -46,4 +46,9 @@ impl User {
pub fn error_account_image_url() -> String {
user_data_url(crate::constants::ERROR_ACCOUNT_IMAGE)
}
/// Check if this user has an account image or not
pub fn has_account_image(&self) -> bool {
self.account_image_path.is_some()
}
}