fix: add DisplayName back to user fields (prevented removing name)

This commit is contained in:
Paul Makles
2024-06-26 14:54:06 +01:00
parent f903f716e3
commit ea6ba59841
4 changed files with 6 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ auto_derived!(
StatusPresence,
ProfileContent,
ProfileBackground,
DisplayName,
}
/// User's relationship with another user (or themselves)
@@ -657,6 +658,7 @@ impl User {
x.background = None;
}
}
FieldsUser::DisplayName => self.display_name = None,
}
}

View File

@@ -326,6 +326,7 @@ impl IntoDocumentPath for FieldsUser {
FieldsUser::ProfileContent => "profile.content",
FieldsUser::StatusPresence => "status.presence",
FieldsUser::StatusText => "status.text",
FieldsUser::DisplayName => "display_name",
})
}
}