fix chatController crash , and make tabBar badgeValue show correct
fix applicationBadgeNumber
merge code