heavyrain.lee 5 yıl önce
ebeveyn
işleme
7020ade233
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      wfchat/WildFireChat/AppDelegate.m

+ 2 - 1
wfchat/WildFireChat/AppDelegate.m

@@ -146,7 +146,8 @@
     // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
     // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
     WFCCUnreadCount *unreadCount = [[WFCCIMService sharedWFCIMService] getUnreadCount:@[@(Single_Type), @(Group_Type), @(Channel_Type)] lines:@[@(0)]];
-    [UIApplication sharedApplication].applicationIconBadgeNumber = unreadCount.unread;
+    int unreadFriendRequest = [[WFCCIMService sharedWFCIMService] getUnreadFriendRequestStatus];
+    [UIApplication sharedApplication].applicationIconBadgeNumber = unreadCount.unread + unreadFriendRequest;
 }