MM-13722 Set the application badge to the number of mentions (#2523)

This commit is contained in:
Elias Nahum 2019-01-27 14:50:17 -03:00 committed by Sudheer
parent 1e3964a3f9
commit d8ef8aa05a

View file

@ -62,10 +62,8 @@ class ChannelDrawerButton extends PureComponent {
EventEmitter.on('drawer_opacity', this.setOpacity);
}
componentDidUpdate(prevProps) {
if (prevProps.mentionCount !== this.props.mentionCount) {
PushNotifications.setApplicationIconBadgeNumber(this.props.mentionCount);
}
componentDidUpdate() {
PushNotifications.setApplicationIconBadgeNumber(this.props.mentionCount);
}
componentWillUnmount() {