                                             me.username = newUsername
                                         }
                                 }
+
+                                doShareProfile()
                             }
                         })
 


    // MARK: Actions

    func shareProfile() {
        if let
            myUserID = YepUserDefaults.userID.value,
            me = userWithUserID(myUserID, inRealm: Realm()) {

                let username = me.username

                if username.isEmpty {


                // share button

                if customNavigationItem.leftBarButtonItem == nil {
                    let shareButton = UIBarButtonItem(barButtonSystemItem: .Action, target: self, action: "tryShareProfile")
                    customNavigationItem.leftBarButtonItem = shareButton
                }
            }
