MM-13722 Set the application badge to the number of mentions (#2523)
This commit is contained in:
parent
1e3964a3f9
commit
d8ef8aa05a
1 changed files with 2 additions and 4 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue