diff options
author | Chris <ccbrown112@gmail.com> | 2017-07-19 13:54:16 -0700 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-07-19 13:54:16 -0700 |
commit | 673f3a1144884373540030a8f5cca3bad3d00b63 (patch) | |
tree | a7555e741730e9af34b56b194aac3c05b5ab206a /webapp/utils/channel_intro_messages.jsx | |
parent | 23a59b03dd272ea26878622a3f46576fcf9e59c8 (diff) | |
download | chat-673f3a1144884373540030a8f5cca3bad3d00b63.tar.gz chat-673f3a1144884373540030a8f5cca3bad3d00b63.tar.bz2 chat-673f3a1144884373540030a8f5cca3bad3d00b63.zip |
PLT-6689: fix user image requests (#6946)
* fix user image requests
* fix eslint errors and a few more cache busters
Diffstat (limited to 'webapp/utils/channel_intro_messages.jsx')
-rw-r--r-- | webapp/utils/channel_intro_messages.jsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/webapp/utils/channel_intro_messages.jsx b/webapp/utils/channel_intro_messages.jsx index c874bfc73..6390f615c 100644 --- a/webapp/utils/channel_intro_messages.jsx +++ b/webapp/utils/channel_intro_messages.jsx @@ -13,8 +13,6 @@ import Constants from 'utils/constants.jsx'; import * as GlobalActions from 'actions/global_actions.jsx'; import ProfilePicture from 'components/profile_picture.jsx'; -import {Client4} from 'mattermost-redux/client'; - import {showManagementOptions} from './channel_utils.jsx'; import React from 'react'; @@ -52,7 +50,7 @@ export function createGMIntroMessage(channel, centeredIntro) { pictures.push( <ProfilePicture key={'introprofilepicture' + profile.id} - src={Client4.getUsersRoute() + '/' + profile.id + '/image?time=' + profile.last_picture_update} + src={Utils.imageURLForUser(profile)} width='50' height='50' user={profile} @@ -112,7 +110,7 @@ export function createDMIntroMessage(channel, centeredIntro) { <div className={'channel-intro ' + centeredIntro}> <div className='post-profile-img__container channel-intro-img'> <ProfilePicture - src={Client4.getUsersRoute() + '/' + teammate.id + '/image?time=' + teammate.last_picture_update} + src={Utils.imageURLForUser(teammate)} width='50' height='50' user={teammate} |