1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse_ynh.git synced 2024-09-03 20:26:38 +02:00

support presence tracking deactivation

This commit is contained in:
OniriCorpe 2024-03-13 21:33:01 +01:00
parent ac9d372699
commit 055305616a
4 changed files with 16 additions and 1 deletions

View file

@ -97,7 +97,7 @@ presence:
# Uncomment to disable presence tracking on this homeserver. This option # Uncomment to disable presence tracking on this homeserver. This option
# replaces the previous top-level 'use_presence' option. # replaces the previous top-level 'use_presence' option.
# #
#enabled: false enabled: __PRESENCE__
# Whether to require authentication to retrieve profile data (avatars, # Whether to require authentication to retrieve profile data (avatars,
# display names) of other users through the client API. Defaults to # display names) of other users through the client API. Defaults to

View file

@ -110,6 +110,13 @@ services = ["__APP__"]
[main.experience] [main.experience]
name = "User Experience" name = "User Experience"
[main.experience.presence_tracking]
ask = "Enable Presence tracking feature"
type = "boolean"
yes = "true"
no = "false"
help = "Presence tracking allows users to see the state (e.g online/offline) of other local and remote users. Defaults to 'true'."
[main.experience.web_client_location] [main.experience.web_client_location]
ask = "Element instance your HomeServer should redirect to" ask = "Element instance your HomeServer should redirect to"
type = "url" type = "url"

View file

@ -25,6 +25,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
report_stats="false" report_stats="false"
e2e_enabled_by_default="off" e2e_enabled_by_default="off"
presence_tracking=true
allow_public_rooms_without_auth="false" allow_public_rooms_without_auth="false"
allow_public_rooms_over_federation="false" allow_public_rooms_over_federation="false"
max_upload_size="100M" max_upload_size="100M"
@ -72,6 +73,7 @@ ynh_app_setting_set --app=$app --key=web_client_location --value=$web_client_loc
ynh_app_setting_set --app=$app --key=client_base_url --value=$client_base_url ynh_app_setting_set --app=$app --key=client_base_url --value=$client_base_url
ynh_app_setting_set --app=$app --key=invite_client_location --value=$invite_client_location ynh_app_setting_set --app=$app --key=invite_client_location --value=$invite_client_location
ynh_app_setting_set --app=$app --key=allow_public_rooms_without_auth --value=$allow_public_rooms_without_auth ynh_app_setting_set --app=$app --key=allow_public_rooms_without_auth --value=$allow_public_rooms_without_auth
ynh_app_setting_set --app=$app --key=presence_tracking --value=$presence_tracking
ynh_app_setting_set --app=$app --key=allow_public_rooms_over_federation --value=$allow_public_rooms_over_federation ynh_app_setting_set --app=$app --key=allow_public_rooms_over_federation --value=$allow_public_rooms_over_federation
ynh_app_setting_set --app=$app --key=max_upload_size --value=$max_upload_size ynh_app_setting_set --app=$app --key=max_upload_size --value=$max_upload_size
ynh_app_setting_set --app=$app --key=disable_msisdn_registration --value=$disable_msisdn_registration ynh_app_setting_set --app=$app --key=disable_msisdn_registration --value=$disable_msisdn_registration

View file

@ -205,6 +205,12 @@ then
ynh_app_setting_set --app=$app --key=enable_dtls_for_audio_video_turn_call --value=$enable_dtls_for_audio_video_turn_call ynh_app_setting_set --app=$app --key=enable_dtls_for_audio_video_turn_call --value=$enable_dtls_for_audio_video_turn_call
fi fi
if [ -z "${presence_tracking:-}" ]
then
presence_tracking=true
ynh_app_setting_set --app=$app --key=presence_tracking --value=$presence_tracking
fi
#================================================= #=================================================
# MIGRATION 7 : STANDARDIZE SYSTEMD UNIT # MIGRATION 7 : STANDARDIZE SYSTEMD UNIT
#================================================= #=================================================