I've been trying to dismiss my alert view by calling dismissViewControllerAnimated but unfortunately I'm not getting what I want since it sends me to the rooviewController ("UsersSwippingViewControllerUsers"/"Users") instead of staying in the view controller that presented it (chatViewController)..

Could You please help me out here.
I have attached screenshots of the code I'm using to call dismissViewControllerAnimated and my storyboard to give you a rough idea of what my app looks like. The view controller that the app is taking me to is "UsersSwippingViewControllerUsers"/"Users" when it should be staying in/taking me to ChatViewController.

ScreenShots:

[This is a preview of my app's storyboard](http://i.stack.imgur.com/hvjwC.png)

[Here is the code I'm using dismissViewControllerAnimated in the handler of the UIAlertAction](http://i.stack.imgur.com/3w8v5.png)