File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ angular.module('mm.addons.messages')
3636 } ) . then ( function ( user ) {
3737 // Verify that no other user was loaded while the async call was in progress.
3838 if ( $scope . userId == userId ) {
39- $scope . profileLink = user . profileimageurl ;
39+ // Use a default icon if no image URL available.
40+ $scope . profileLink = user . profileimageurl || true ;
4041 }
4142 } ) ;
4243 }
Original file line number Diff line number Diff line change 33
44 < ion-nav-buttons side ="secondary ">
55 < a ng-if ="profileLink " mm-user-link userid ="{{userId}} " aria-label ="{{ 'mm.user.viewprofile' | translate }} ">
6- < img ng-if ="profileLink && profileLink !== true " class ="button mm-bar-button-image " ng-src ="{{profileLink}} ">
6+ < img ng-if ="profileLink && profileLink !== true " class ="button mm-bar-button-image " ng-src ="{{profileLink}} " mm-external-content >
77 < span ng-if ="profileLink === true " class ="button button-icon icon ion-person "> </ span >
88 </ a >
99 </ ion-nav-buttons >
Original file line number Diff line number Diff line change 11< ion-view view-title ="{{ 'mma.messages.messages' | translate }} ">
22 < ion-nav-buttons side ="secondary ">
33 < a ng-if ="profileLink " mm-user-link userid ="{{userId}} " aria-label ="{{ 'mm.user.viewprofile' | translate }} ">
4- < img ng-if ="profileLink && profileLink !== true " class ="button mm-bar-button-image " ng-src ="{{profileLink}} ">
4+ < img ng-if ="profileLink && profileLink !== true " class ="button mm-bar-button-image " ng-src ="{{profileLink}} " mm-external-content >
55 < span ng-if ="profileLink === true " class ="button button-icon icon ion-person "> </ span >
66 </ a >
77 </ ion-nav-buttons >
You can’t perform that action at this time.
0 commit comments