Skip to content

Commit 59e0f8a

Browse files
committed
Be explicit about pointing to Element X when accessing EW from mobile
1 parent 43d2a7e commit 59e0f8a

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

charts/matrix-stack/configs/element-web/config.json.tpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ SPDX-License-Identifier: AGPL-3.0-only
3535
{{- $_ := set $config "default_server_config" $defaultServerConfig -}}
3636
{{- $_ := set $config "bug_report_endpoint_url" "https://element.io/bugreports/submit" -}}
3737
{{- $_ := set $config "map_style_url" "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx" -}}
38+
{{- $_ := set $config "mobile_guide_app_variant" "element" -}}
3839
{{- with .additional }}
3940
{{- range $key := (. | keys | uniq | sortAlpha) }}
4041
{{- $prop := index $root.Values.elementWeb.additional $key }}

newsfragments/610.changed.1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Set Element X as app to be pointed to when accessing Element Web from a mobile browser.

tests/manifests/test_element_web.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ async def test_config_json_override(values, make_templates):
1717
"bug_report_endpoint_url": "https://element.io/bugreports/submit",
1818
"default_server_config": {"m.homeserver": {}},
1919
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx",
20+
"mobile_guide_app_variant": "element",
2021
"setting_defaults": {},
2122
}
2223
break
@@ -27,6 +28,7 @@ async def test_config_json_override(values, make_templates):
2728
"000-comes-first": json.dumps(
2829
{
2930
"bug_report_endpoint_url": "https://other-url",
31+
"mobile_guide_app_variant": "element-classic",
3032
"some_key": {"some_subkey": "value"},
3133
"other_key": {"other_value": "value_second"},
3234
}
@@ -43,6 +45,7 @@ async def test_config_json_override(values, make_templates):
4345
"bug_report_endpoint_url": "https://other-url",
4446
"default_server_config": {"m.homeserver": {}},
4547
"map_style_url": "https://api.maptiler.com/maps/streets/style.json?key=fU3vlMsMn4Jb6dnEIFsx",
48+
"mobile_guide_app_variant": "element-classic",
4649
"setting_defaults": {},
4750
"other_key": {"other_value": "value_second"},
4851
"some_key": {"some_subkey": "override"},

0 commit comments

Comments
 (0)