DEV: Remove user options from current user serializer (#19089)

User options were serialized at the root level of CurrentUserSerializer,
but UserSerializer has a user_option field. This inconsistency caused
issues in the past because user_option fields had to be duplicated on
the frontend.
This commit is contained in:
Bianca Nenciu
2022-12-05 18:25:30 +02:00
committed by GitHub
parent 68c4f16a73
commit 7d7551adfc
68 changed files with 368 additions and 324 deletions

View File

@ -11,7 +11,7 @@ export default class ComposerPresenceManager extends Service {
notifyState(intent, id) {
if (
this.siteSettings.allow_users_to_hide_profile &&
this.currentUser.hide_profile_and_presence
this.currentUser.user_option.hide_profile_and_presence
) {
return;
}