 
         EurofurenceApplication.shared.add(authenticationStateObserver: self)
         EurofurenceApplication.shared.add(privateMessagesObserver: self)
+        EurofurenceApplication.shared.add(logoutObserver: self)
         EurofurenceApplication.shared.fetchPrivateMessages()
 
 		favoritesOnlySegmentedControl.selectedSegmentIndex = newsPreferences.doFilterEventFavorites ? 1 : 0


    func loggedIn(as user: User) {
        loggedInUser = user

        let loginSectionIndex = IndexSet(integer: 0)
        tableView.reloadSections(loginSectionIndex, with: .automatic)
    }

    // MARK: PrivateMessagesObserver

                               UIViewControllerPreviewingDelegate,
                               MessagesViewControllerDelegate,
                               AuthenticationStateObserver,
                               PrivateMessagesObserver,
                               LogoutObserver {
	@IBOutlet weak var favoritesOnlySegmentedControl: UISegmentedControl!
	@IBOutlet weak var lastSyncLabel: UILabel!

