Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fullscreen video in detailed status plays in fullscreen (Partly Fix #5160) #5611

Merged
merged 2 commits into from Nov 7, 2017
Merged

Conversation

nullkal
Copy link
Contributor

@nullkal nullkal commented Nov 7, 2017

No description provided.

@@ -65,10 +67,19 @@ export default class Status extends ImmutablePureComponent {
intl: PropTypes.object.isRequired,
};

constructor (props) {
Copy link
Contributor

Choose a reason for hiding this comment

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

context should also be passed as an argument.

constructor (props, context) {
  super(props, context);
}

Or, it is recommended to assign state without using constructor.

export default class Status extends ImmutablePureComponent {
  static propTypes = {};

  state = {};

  componentWillMount () {}
}

@nullkal nullkal changed the title Make fullscreen video in detailed status plays in fullscreen (Fix #5160) Make fullscreen video in detailed status plays in fullscreen (Partly Fix #5160) Nov 7, 2017
@@ -65,10 +67,19 @@ export default class Status extends ImmutablePureComponent {
intl: PropTypes.object.isRequired,
};

constructor (props) {
super(props);
this.state = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

I thought it was better to set it to the initial value of fullscreen of state.

@Gargron Gargron merged commit 864c4d8 into mastodon:master Nov 7, 2017
cobodo pushed a commit to cobodo/mastodon that referenced this pull request Dec 6, 2017
 mastodon#5160) (mastodon#5611)

* Make fullscreen video in detailed status plays in fullscreen (Fix mastodon#5160)

* Directly assign the initial state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants