From d8ef8aa05ae0510424ba5b13f124359ea9f97a6d Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Sun, 27 Jan 2019 14:50:17 -0300 Subject: [PATCH] MM-13722 Set the application badge to the number of mentions (#2523) --- .../channel/channel_nav_bar/channel_drawer_button.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/screens/channel/channel_nav_bar/channel_drawer_button.js b/app/screens/channel/channel_nav_bar/channel_drawer_button.js index 6baf65cb2..ada893381 100644 --- a/app/screens/channel/channel_nav_bar/channel_drawer_button.js +++ b/app/screens/channel/channel_nav_bar/channel_drawer_button.js @@ -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() {