                 if let statusCode = responseConfig.statusCode, statusCode == 204 {
                     postNotification(NewContentNotifications.newFollowingContent, value: ())
                 }
-
-                done()
-            },
-            failure: { _ in done() })
+            }
     }
 }

//

import SwiftyUserDefaults


struct NewContentNotifications {

        }
    }

    func checkForNewNotifications() -> Promise<Void> {
        let storedKey = StreamKind.notifications(category: nil).lastViewedCreatedAtKey!
        let storedDate = GroupDefaults[storedKey].date

        return ElloProvider.shared.request(.notificationsNewContent(createdAt: storedDate))
            .thenFinally { response in
                guard
                    let statusCode = response.1.statusCode,
                    statusCode == 204
                    else { return }

                postNotification(NewContentNotifications.newNotifications, value: ())
            }
    }

    func checkForNewAnnouncements() -> Promise<Void> {
        let storedKey = StreamKind.announcements.lastViewedCreatedAtKey!
        let storedDate = GroupDefaults[storedKey].date

         return ElloProvider.shared.request(.announcementsNewContent(createdAt: storedDate))
             .thenFinally { response in
                guard
                    let statusCode = response.1.statusCode,
                    statusCode == 204
                else { return }

                postNotification(NewContentNotifications.newAnnouncements, value: ())
             }
    }

    func checkForNewFollowingContent() -> Promise<Void> {
        let storedKey = StreamKind.following.lastViewedCreatedAtKey!
        let storedDate = GroupDefaults[storedKey].date

        return ElloProvider.shared.request(.followingNewContent(createdAt: storedDate))
            .thenFinally { response in
                let responseConfig = response.1
                if let lastModified = responseConfig.lastModified {
                    GroupDefaults[storedKey] = lastModified.toDate(HTTPDateFormatter)
                }
