File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,8 @@ For a good example, see https://develop.element.io/config.json.
166166 the well-known location is used instead.
1671671 . ` analyticsOwner ` : The entity that analytics data is being sent to. Used in copy
168168 when explaining to the user where data is being sent. If not set, defaults to ` brand ` .
169+ 1 . ` defaultDeviceDisplayName ` : The default device display name to use for new logins
170+ and registrations. If not set then a calculated version will be used.
169171
170172Note that ` index.html ` also has an og: image meta tag that is set to an image
171173hosted on riot.im. This is the image used if links to your copy of Element
Original file line number Diff line number Diff line change @@ -180,6 +180,8 @@ export async function loadApp(fragParams: {}) {
180180 return ;
181181 }
182182
183+ const defaultDeviceName = config [ 'defaultDeviceDisplayName' ] ?? platform . getDefaultDeviceDisplayName ( ) ;
184+
183185 const MatrixChat = sdk . getComponent ( 'structures.MatrixChat' ) ;
184186 return < MatrixChat
185187 onNewScreen = { onNewScreen }
@@ -190,7 +192,7 @@ export async function loadApp(fragParams: {}) {
190192 enableGuest = { ! config . disable_guests }
191193 onTokenLoginCompleted = { onTokenLoginCompleted }
192194 initialScreenAfterLogin = { getScreenFromLocation ( window . location ) }
193- defaultDeviceDisplayName = { platform . getDefaultDeviceDisplayName ( ) }
195+ defaultDeviceDisplayName = { defaultDeviceName }
194196 /> ;
195197}
196198
You can’t perform that action at this time.
0 commit comments