Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Set initial_device_display_name on login and register #413

Merged
merged 1 commit into from
Aug 12, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Aug 12, 2016

Let Vector pass in a default device name, and thread it through everywhere to
set it on login and register calls

Let Vector pass in a default device name, and thread it through everywhere to
set it on login and register calls
@@ -185,6 +185,7 @@ module.exports = React.createClass({
enableGuest: this.props.enableGuest,
guestHsUrl: this.getCurrentHsUrl(),
guestIsUrl: this.getCurrentIsUrl(),
defaultDisplayName: this.props.config.default_device_name,
Copy link
Member

@dbkr dbkr Aug 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could do with being in propTypes (especially as it would be good to doc what happens when it's undefined, although presumably this is up to the Home Server?). Also it should probably be in camelCase to be consistent with the other props.

Oh, although that said, it's within the config rather than a prop itself.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants