UX: Split hide_profile_and_presence user option (#29632)

It splits the hide_profile_and_presence user option and the default_hide_profile_and_presence site setting for more granular control. It keeps the option to hide the profile under /u/username/preferences/interface and adds the presence toggle in the quick user menu.

Co-authored-by: Régis Hanol <regis@hanol.fr>
This commit is contained in:
Jan Cernik
2024-11-12 22:22:58 -03:00
committed by GitHub
parent d637bd6519
commit 234133bd3b
35 changed files with 179 additions and 63 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.user_option.hide_profile_and_presence
this.currentUser.user_option.hide_presence
) {
return;
}