Skip to content

Commit

Permalink
PLT-7558 Fixing perf issues for profile on master (mattermost#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhulen committed Sep 13, 2017
1 parent a7671fc commit e53390a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ export function imageURLForUser(userIdOrObject) {
if (profile) {
return imageURLForUser(profile);
}
return Client4.getUsersRoute() + '/' + userIdOrObject + '/image?_=' + Date.now();
return Client4.getUsersRoute() + '/' + userIdOrObject + '/image?_=0';
}
return Client4.getUsersRoute() + '/' + userIdOrObject.id + '/image?_=' + (userIdOrObject.last_picture_update || 0);
}
Expand Down

0 comments on commit e53390a

Please sign in to comment.