Skip to content

Commit

Permalink
Rename variable (matrix_client_element_jitsi_preferredDomain -> matri…
Browse files Browse the repository at this point in the history
…x_client_element_jitsi_preferredDomain)
  • Loading branch information
spantaleev committed Aug 10, 2023
1 parent e9c0e90 commit ae12ab5
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion group_vars/matrix_servers
Original file line number Diff line number Diff line change
Expand Up @@ -3341,7 +3341,7 @@ matrix_client_element_enable_presence_by_hs_url: |

matrix_client_element_welcome_user_id: ~

matrix_client_element_jitsi_preferredDomain: "{{ matrix_server_fqn_jitsi if jitsi_enabled else '' }}"
matrix_client_element_jitsi_preferred_domain: "{{ matrix_server_fqn_jitsi if jitsi_enabled else '' }}"

######################################################################
#
Expand Down
2 changes: 1 addition & 1 deletion roles/custom/matrix-base/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ matrix_integration_manager_ui_url: ~
# The domain name where a Jitsi server is self-hosted.
# If set, `/.well-known/matrix/client` will suggest Element clients to use that Jitsi server.
# See: https://github.com/vector-im/element-web/blob/develop/docs/jitsi.md#configuring-element-to-use-your-self-hosted-jitsi-server
matrix_client_element_jitsi_preferredDomain: '' # noqa var-naming
matrix_client_element_jitsi_preferred_domain: '' # noqa var-naming

# Controls whether Element should use End-to-End Encryption by default.
# Setting this to false will update `/.well-known/matrix/client` and tell Element clients to avoid E2EE.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
]
}
{% endif %}
{% if matrix_client_element_jitsi_preferredDomain %},
{% if matrix_client_element_jitsi_preferred_domain %},
"io.element.jitsi": {
"preferredDomain": {{ matrix_client_element_jitsi_preferredDomain|to_json }}
"preferredDomain": {{ matrix_client_element_jitsi_preferred_domain|to_json }}
},
"im.vector.riot.jitsi": {
"preferredDomain": {{ matrix_client_element_jitsi_preferredDomain|to_json }}
"preferredDomain": {{ matrix_client_element_jitsi_preferred_domain|to_json }}
}
{% endif %}
{% if matrix_sliding_sync_enabled %},
Expand Down
2 changes: 1 addition & 1 deletion roles/custom/matrix-client-element/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ matrix_client_element_page_template_welcome_path: "{{ role_path }}/templates/wel
# point this to a `home.html` template file on your local filesystem.
matrix_client_element_embedded_pages_home_path: ~

matrix_client_element_jitsi_preferredDomain: '' # noqa var-naming
matrix_client_element_jitsi_preferred_domain: '' # noqa var-naming

# Controls whether the self-check feature should validate SSL certificates.
matrix_client_element_self_check_validate_certificates: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
- {'old': 'matrix_client_element_branding_authFooterLinks', 'new': 'matrix_client_element_branding_auth_footer_links'}
- {'old': 'matrix_client_element_branding_authHeaderLogoUrl', 'new': 'matrix_client_element_branding_auth_header_logo_url'}
- {'old': 'matrix_client_element_branding_welcomeBackgroundUrl', 'new': 'matrix_client_element_branding_welcome_background_url'}
- {'old': 'matrix_client_element_jitsi_preferredDomain', 'new': 'matrix_client_element_jitsi_preferred_domain'}

- when: matrix_client_element_container_labels_traefik_enabled | bool
block:
Expand Down
4 changes: 2 additions & 2 deletions roles/custom/matrix-client-element/templates/config.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"embedded_pages": {
"homeUrl": {{ matrix_client_element_embedded_pages_home_url | string | to_json }}
},
{% if matrix_client_element_jitsi_preferredDomain %}
{% if matrix_client_element_jitsi_preferred_domain %}
"jitsi": {
"preferred_domain": {{ matrix_client_element_jitsi_preferredDomain | to_json }}
"preferred_domain": {{ matrix_client_element_jitsi_preferred_domain | to_json }}
},
{% endif %}
{% if matrix_client_element_location_sharing_enabled %}
Expand Down

0 comments on commit ae12ab5

Please sign in to comment.