diff --git a/www/addons/messages/controllers/index.js b/www/addons/messages/controllers/index.js index a2e92bc6e88..3de6bb3d29c 100644 --- a/www/addons/messages/controllers/index.js +++ b/www/addons/messages/controllers/index.js @@ -25,7 +25,7 @@ angular.module('mm.addons.messages') mmaMessagesDiscussionLoadedEvent, mmaMessagesDiscussionLeftEvent) { // Listen for discussion loaded event to show user profile link in tablet view. var obsLoaded = $mmEvents.on(mmaMessagesDiscussionLoadedEvent, function(userId) { - if ($ionicPlatform.isTablet() && $ionicTabsDelegate.selectedIndex() === 0) { + if ($ionicPlatform.isTablet()) { // A discussion was loaded in tablet, get the user image and show the button to the profile. $scope.userId = userId; $mmUser.getProfile(userId, undefined, true).catch(function() { diff --git a/www/addons/messages/templates/contacts.html b/www/addons/messages/templates/contacts.html index af6b481b722..3ab74df8337 100644 --- a/www/addons/messages/templates/contacts.html +++ b/www/addons/messages/templates/contacts.html @@ -25,7 +25,7 @@
{{ contact.fullname }}