const excludeTypesFromFilter = filter => {
- const allTypes = ImmutableList(['follow', 'favourite', 'reblog', 'mention']);
+ const allTypes = ImmutableList(['follow', 'favourite', 'reblog', 'mention', 'poll']);
return allTypes.filterNot(item => item === filter).toJS();
};
values={{ name : link }}
/>
);
+ case 'poll':
+ return (
+ <FormattedMessage
+ id='notification.poll'
+ defaultMessage='Your poll has ended'
+ />
+ );
}
return null;
}
<div className={type === 'reblogged_by' || type === 'featured' ? 'status__prepend-icon-wrapper' : 'notification__favourite-icon-wrapper'}>
<i
className={`fa fa-fw fa-${
- type === 'favourite' ? 'star star-icon' : (type === 'featured' ? 'thumb-tack' : 'retweet')
+ type === 'favourite' ? 'star star-icon' : (type === 'featured' ? 'thumb-tack' : (type === 'poll' ? 'tasks' : 'retweet'))
} status__prepend-icon`}
/>
</div>
withDismiss
/>
);
+ case 'poll':
+ return (
+ <StatusContainer
+ containerId={notification.get('id')}
+ hidden={hidden}
+ id={notification.get('status')}
+ account={notification.get('account')}
+ prepend='poll'
+ muted
+ notification={notification}
+ onMoveDown={onMoveDown}
+ onMoveUp={onMoveUp}
+ onMention={onMention}
+ getScrollPosition={getScrollPosition}
+ updateScrollBottom={updateScrollBottom}
+ cachedMediaWidth={this.props.cachedMediaWidth}
+ cacheMediaWidth={this.props.cacheMediaWidth}
+ onUnmount={this.props.onUnmount}
+ withDismiss
+ />
+ );
default:
return null;
}
favourite: true,
reblog: true,
mention: true,
+ poll: true,
}),
quickFilter: ImmutableMap({
favourite: true,
reblog: true,
mention: true,
+ poll: true,
}),
sounds: ImmutableMap({
favourite: true,
reblog: true,
mention: true,
+ poll: true,
}),
}),