 
         contactsTableView?.delegate = nil
 
-        realmNotificationToken?.stop()
+        //realmNotificationToken?.stop()
+        friendsNotificationToken?.stop()
 
         // ref http://stackoverflow.com/a/33281648
         if let superView = searchController?.view.superview {


        noContacts = friends.isEmpty

        realmNotificationToken = friends.realm?.addNotificationBlock { [weak self] notification, realm in
            if let strongSelf = self {
                strongSelf.noContacts = strongSelf.friends.isEmpty
            }
            
            self?.updateContactsTableView()
        }

        YepUserDefaults.nickname.bindListener(Listener.Nickname) { [weak self] _ in
            dispatch_async(dispatch_get_main_queue()) {


    private var searchedUsers: [DiscoveredUser] = []

    //private var realmNotificationToken: NotificationToken?
    private var friendsNotificationToken: NotificationToken?

    private lazy var noContactsFooterView: InfoView = InfoView(NSLocalizedString("No friends yet.\nTry discover or add some.", comment: ""))

