Archived
2
0
Fork 0

Center header in account column, hide media in "muted" status components (notifications)

This commit is contained in:
Eugen Rochko 2016-11-24 23:09:53 +01:00
parent c0a223b480
commit fca183968e
2 changed files with 2 additions and 2 deletions

View file

@ -82,7 +82,7 @@ const Status = React.createClass({
);
}
if (status.get('media_attachments').size > 0) {
if (status.get('media_attachments').size > 0 && !this.props.muted) {
if (status.getIn(['media_attachments', 0, 'type']) === 'video') {
media = <VideoPlayer media={status.getIn(['media_attachments', 0])} sensitive={status.get('sensitive')} />;
} else {