Fixed goToMessages function for iPhone.