diff --git a/Classes/Feedback/BITFeedbackManager.m b/Classes/Feedback/BITFeedbackManager.m index 5b0e6dc367..d6023ac6f7 100644 --- a/Classes/Feedback/BITFeedbackManager.m +++ b/Classes/Feedback/BITFeedbackManager.m @@ -572,6 +572,8 @@ [self sendNetworkRequestWithHTTPMethod:@"GET" withText:nil completionHandler:^(NSError *err){ + // inform the UI to update its data in case the list is already showing + [[NSNotificationCenter defaultCenter] postNotificationName:BITHockeyFeedbackMessagesUpdated object:nil]; }]; } @@ -597,11 +599,10 @@ [message setStatus:BITFeedbackMessageStatusSendPending]; [self saveMessages]; - - // inform the UI to update its data in case the list is already showing - [[NSNotificationCenter defaultCenter] postNotificationName:BITHockeyFeedbackMessagesUpdated object:nil]; - } + + // inform the UI to update its data in case the list is already showing + [[NSNotificationCenter defaultCenter] postNotificationName:BITHockeyFeedbackMessagesUpdated object:nil]; }]; } } diff --git a/Classes/HockeySDK.h b/Classes/HockeySDK.h index 49cd8968a7..2503fcdf27 100644 --- a/Classes/HockeySDK.h +++ b/Classes/HockeySDK.h @@ -50,12 +50,9 @@ // Notification message which HockeyManager is listening to, to retry requesting updated from the server #define BITHockeyNetworkDidBecomeReachableNotification @"BITHockeyNetworkDidBecomeReachable" -// Notification message which tells that messages got updated or added +// Notification message which tells that loading messages finished #define BITHockeyFeedbackMessagesUpdated @"BITHockeyFeedbackMessagesUpdated" -// Notification message which tells that new messages arrived -#define BITHockeyFeedbackNewMessagesReceived @"BITHockeyFeedbackNewMessagesReceived" - // hockey api error domain typedef enum {