Support a config option to change the default device name (#20790)
This commit is contained in:
parent
cfa97212f7
commit
7078373fbb
2 changed files with 5 additions and 1 deletions
|
@ -180,6 +180,8 @@ export async function loadApp(fragParams: {}) {
|
|||
return;
|
||||
}
|
||||
|
||||
const defaultDeviceName = config['defaultDeviceDisplayName'] ?? platform.getDefaultDeviceDisplayName();
|
||||
|
||||
const MatrixChat = sdk.getComponent('structures.MatrixChat');
|
||||
return <MatrixChat
|
||||
onNewScreen={onNewScreen}
|
||||
|
@ -190,7 +192,7 @@ export async function loadApp(fragParams: {}) {
|
|||
enableGuest={!config.disable_guests}
|
||||
onTokenLoginCompleted={onTokenLoginCompleted}
|
||||
initialScreenAfterLogin={getScreenFromLocation(window.location)}
|
||||
defaultDeviceDisplayName={platform.getDefaultDeviceDisplayName()}
|
||||
defaultDeviceDisplayName={defaultDeviceName}
|
||||
/>;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue