summaryrefslogtreecommitdiffstats
path: root/webapp/components/search_results_item.jsx
diff options
context:
space:
mode:
authorChris <ccbrown112@gmail.com>2017-07-19 13:54:16 -0700
committerChristopher Speller <crspeller@gmail.com>2017-07-19 13:54:16 -0700
commit673f3a1144884373540030a8f5cca3bad3d00b63 (patch)
treea7555e741730e9af34b56b194aac3c05b5ab206a /webapp/components/search_results_item.jsx
parent23a59b03dd272ea26878622a3f46576fcf9e59c8 (diff)
downloadchat-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/components/search_results_item.jsx')
-rw-r--r--webapp/components/search_results_item.jsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index 3b632ee5e..56b91fe68 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -9,7 +9,6 @@ import ProfilePicture from './profile_picture.jsx';
import CommentIcon from 'components/common/comment_icon.jsx';
import TeamStore from 'stores/team_store.jsx';
-import UserStore from 'stores/user_store.jsx';
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
import * as GlobalActions from 'actions/global_actions.jsx';
@@ -113,7 +112,6 @@ export default class SearchResultsItem extends React.Component {
render() {
let channelName = null;
const channel = this.props.channel;
- const timestamp = UserStore.getCurrentUser().last_picture_update;
const user = this.props.user || {};
const post = this.props.post;
@@ -154,7 +152,7 @@ export default class SearchResultsItem extends React.Component {
const profilePic = (
<ProfilePicture
- src={PostUtils.getProfilePicSrcForPost(post, timestamp)}
+ src={PostUtils.getProfilePicSrcForPost(post, user)}
user={this.props.user}
status={this.props.status}
isBusy={this.props.isBusy}