Display AttachmentList in notifications (#6693)
This commit is contained in:
parent
510c9049c7
commit
77406d3a09
2 changed files with 20 additions and 12 deletions
|
@ -178,8 +178,8 @@ export default class Status extends ImmutablePureComponent {
|
|||
status = status.get('reblog');
|
||||
}
|
||||
|
||||
if (status.get('media_attachments').size > 0 && !this.props.muted) {
|
||||
if (status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
|
||||
if (status.get('media_attachments').size > 0) {
|
||||
if (this.props.muted || status.get('media_attachments').some(item => item.get('type') === 'unknown')) {
|
||||
media = (
|
||||
<AttachmentList
|
||||
compact
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue