From e82bcea0d06b2173ed286f394ee33a393469eeaf Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Fri, 6 Jan 2017 12:13:22 -0500 Subject: PLT-5118 moving to last_picture_update for the profile img (#4985) --- webapp/components/admin_console/admin_sidebar_header.jsx | 2 +- webapp/components/popover_list_members.jsx | 2 +- webapp/components/post_view/components/post.jsx | 6 +++--- webapp/components/rhs_comment.jsx | 2 +- webapp/components/rhs_root_post.jsx | 2 +- webapp/components/search_results_item.jsx | 2 +- webapp/components/sidebar_header.jsx | 2 +- webapp/components/suggestion/at_mention_provider.jsx | 2 +- webapp/components/suggestion/search_user_provider.jsx | 2 +- webapp/components/suggestion/switch_channel_provider.jsx | 2 +- webapp/components/user_list_row.jsx | 2 +- webapp/components/user_profile.jsx | 2 +- webapp/components/webrtc/components/webrtc_notification.jsx | 2 +- webapp/components/webrtc/webrtc_controller.jsx | 6 +++--- webapp/utils/channel_intro_messages.jsx | 2 +- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/webapp/components/admin_console/admin_sidebar_header.jsx b/webapp/components/admin_console/admin_sidebar_header.jsx index 86c2c6b0f..5725551bf 100644 --- a/webapp/components/admin_console/admin_sidebar_header.jsx +++ b/webapp/components/admin_console/admin_sidebar_header.jsx @@ -42,7 +42,7 @@ export default class SidebarHeader extends React.Component { profilePicture = ( diff --git a/webapp/components/post_view/components/post.jsx b/webapp/components/post_view/components/post.jsx index f052ac4ae..03075a3fb 100644 --- a/webapp/components/post_view/components/post.jsx +++ b/webapp/components/post_view/components/post.jsx @@ -150,10 +150,10 @@ export default class Post extends React.Component { } let timestamp = 0; - if (!this.props.user || this.props.user.update_at == null) { - timestamp = this.props.currentUser.update_at; + if (!this.props.user || this.props.user.last_picture_update == null) { + timestamp = this.props.currentUser.last_picture_update; } else { - timestamp = this.props.user.update_at; + timestamp = this.props.user.last_picture_update; } let sameUserClass = ''; diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx index 8b7642fd8..f83574496 100644 --- a/webapp/components/rhs_comment.jsx +++ b/webapp/components/rhs_comment.jsx @@ -239,7 +239,7 @@ export default class RhsComment extends React.Component { currentUserCss = 'current--user'; } - var timestamp = this.props.currentUser.update_at; + var timestamp = this.props.currentUser.last_picture_update; let status = this.props.status; if (post.props && post.props.from_webhook === 'true') { diff --git a/webapp/components/rhs_root_post.jsx b/webapp/components/rhs_root_post.jsx index 95f5fc1ac..235ed8db7 100644 --- a/webapp/components/rhs_root_post.jsx +++ b/webapp/components/rhs_root_post.jsx @@ -99,7 +99,7 @@ export default class RhsRootPost extends React.Component { var isOwner = this.props.currentUser.id === post.user_id; var isAdmin = TeamStore.isTeamAdminForCurrentTeam() || UserStore.isSystemAdminForCurrentUser(); const isSystemMessage = post.type && post.type.startsWith(Constants.SYSTEM_MESSAGE_PREFIX); - var timestamp = user ? user.update_at : 0; + var timestamp = user ? user.last_picture_update : 0; var channel = ChannelStore.get(post.channel_id); const flagIcon = Constants.FLAG_ICON_SVG; diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx index 76681959e..50e440b04 100644 --- a/webapp/components/search_results_item.jsx +++ b/webapp/components/search_results_item.jsx @@ -62,7 +62,7 @@ export default class SearchResultsItem extends React.Component { render() { let channelName = null; const channel = this.props.channel; - const timestamp = UserStore.getCurrentUser().update_at; + const timestamp = UserStore.getCurrentUser().last_picture_update; const user = this.props.user || {}; const post = this.props.post; const flagIcon = Constants.FLAG_ICON_SVG; diff --git a/webapp/components/sidebar_header.jsx b/webapp/components/sidebar_header.jsx index d5db54c14..ded3b5d1a 100644 --- a/webapp/components/sidebar_header.jsx +++ b/webapp/components/sidebar_header.jsx @@ -59,7 +59,7 @@ export default class SidebarHeader extends React.Component { profilePicture = ( diff --git a/webapp/components/suggestion/switch_channel_provider.jsx b/webapp/components/suggestion/switch_channel_provider.jsx index 301974b9a..0bc30a79f 100644 --- a/webapp/components/suggestion/switch_channel_provider.jsx +++ b/webapp/components/suggestion/switch_channel_provider.jsx @@ -35,7 +35,7 @@ class SwitchChannelSuggestion extends Suggestion {