Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion www/addons/messages/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion www/addons/messages/templates/contacts.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2>{{ 'mma.messages.type_' + contactType | translate }}</h2>
</button>
</ion-item>

<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 -->
<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 -->
<img ng-src="{{ contact.profileimageurl || contact.profileimageurlsmall }}" alt="{{ 'mm.core.pictureof' | translate:{$a: contact.fullname} }}" role="presentation" mm-external-content >
<p class="item-heading">{{ contact.fullname }}</p>
</a>
Expand Down