summaryrefslogtreecommitdiffstats
path: root/web/react/components/search_results.jsx
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-07-13 09:22:42 -0700
committernickago <ngonella@calpoly.edu>2015-07-13 09:22:42 -0700
commitc485dad84f9a94c3d1261f7e2207baf071c2d3ca (patch)
tree343be0909df527475c947e112cd100b14b8895d8 /web/react/components/search_results.jsx
parentf5d188e1caa4b27eb4878de41e479199ca0cafda (diff)
downloadchat-c485dad84f9a94c3d1261f7e2207baf071c2d3ca.tar.gz
chat-c485dad84f9a94c3d1261f7e2207baf071c2d3ca.tar.bz2
chat-c485dad84f9a94c3d1261f7e2207baf071c2d3ca.zip
Added update function to image update and fixed corner cases
Diffstat (limited to 'web/react/components/search_results.jsx')
-rw-r--r--web/react/components/search_results.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/search_results.jsx b/web/react/components/search_results.jsx
index 003a38b7e..156cf0120 100644
--- a/web/react/components/search_results.jsx
+++ b/web/react/components/search_results.jsx
@@ -76,6 +76,7 @@ SearchItem = React.createClass({
var message = utils.textToJsx(this.props.post.message, {searchTerm: this.props.term, noMentionHighlight: !this.props.isMentionSearch});
var channelName = "";
var channel = ChannelStore.get(this.props.post.channel_id)
+ var timestamp = UserStore.getCurrentUser().update_at;
if (channel) {
if (channel.type === 'D') {
@@ -89,7 +90,7 @@ SearchItem = React.createClass({
<div className="search-item-container post" onClick={this.handleClick}>
<div className="search-channel__name">{ channelName }</div>
<div className="post-profile-img__container">
- <img className="post-profile-img" src={"/api/v1/users/" + this.props.post.user_id + "/image"} height="36" width="36" />
+ <img className="post-profile-img" src={"/api/v1/users/" + this.props.post.user_id + "/image?time=" + timestamp} height="36" width="36" />
</div>
<div className="post__content">
<ul className="post-header">