Skip to content

Commit b23c7fb

Browse files
committed
Merge pull request #439 from crazyserver/MOBILE-1508
MOBILE-1508 messages: Go to message discussion from contacts tab
2 parents f9f5792 + 0e07b63 commit b23c7fb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

www/addons/messages/controllers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ angular.module('mm.addons.messages')
2525
mmaMessagesDiscussionLoadedEvent, mmaMessagesDiscussionLeftEvent) {
2626
// Listen for discussion loaded event to show user profile link in tablet view.
2727
var obsLoaded = $mmEvents.on(mmaMessagesDiscussionLoadedEvent, function(userId) {
28-
if ($ionicPlatform.isTablet() && $ionicTabsDelegate.selectedIndex() === 0) {
28+
if ($ionicPlatform.isTablet()) {
2929
// A discussion was loaded in tablet, get the user image and show the button to the profile.
3030
$scope.userId = userId;
3131
$mmUser.getProfile(userId, undefined, true).catch(function() {

www/addons/messages/templates/contacts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h2>{{ 'mma.messages.type_' + contactType | translate }}</h2>
2525
</button>
2626
</ion-item>
2727

28-
<a ng-repeat="contact in contacts[contactType] | orderBy:'fullname' track by $index" ng-if="contact.profileimageurl || contact.profileimageurlsmall" class="item item-avatar" mm-split-view-link="{{userStateName}}({userid: contact.id})" title="{{contact.fullname}}"> <!-- Don't show deleted users -->
28+
<a ng-repeat="contact in contacts[contactType] | orderBy:'fullname' track by $index" ng-if="contact.profileimageurl || contact.profileimageurlsmall" class="item item-avatar" mm-split-view-link="site.messages-discussion({userId: contact.id})" title="{{contact.fullname}}"> <!-- Don't show deleted users -->
2929
<img ng-src="{{ contact.profileimageurl || contact.profileimageurlsmall }}" alt="{{ 'mm.core.pictureof' | translate:{$a: contact.fullname} }}" role="presentation" mm-external-content >
3030
<p class="item-heading">{{ contact.fullname }}</p>
3131
</a>

0 commit comments

Comments
 (0)