summaryrefslogtreecommitdiffstats
path: root/webapp/components/webrtc/webrtc_controller.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-01-06 12:13:22 -0500
committerJoram Wilander <jwawilander@gmail.com>2017-01-06 12:13:22 -0500
commite82bcea0d06b2173ed286f394ee33a393469eeaf (patch)
tree2280b8b8d030675e916d1e9fc5b89fa24aee1b50 /webapp/components/webrtc/webrtc_controller.jsx
parent1aa235b10d298926f2d683b2d1a5c82f6a9591e9 (diff)
downloadchat-e82bcea0d06b2173ed286f394ee33a393469eeaf.tar.gz
chat-e82bcea0d06b2173ed286f394ee33a393469eeaf.tar.bz2
chat-e82bcea0d06b2173ed286f394ee33a393469eeaf.zip
PLT-5118 moving to last_picture_update for the profile img (#4985)
Diffstat (limited to 'webapp/components/webrtc/webrtc_controller.jsx')
-rw-r--r--webapp/components/webrtc/webrtc_controller.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/webrtc/webrtc_controller.jsx b/webapp/components/webrtc/webrtc_controller.jsx
index 94e5b3475..03953a19a 100644
--- a/webapp/components/webrtc/webrtc_controller.jsx
+++ b/webapp/components/webrtc/webrtc_controller.jsx
@@ -81,14 +81,14 @@ export default class WebrtcController extends React.Component {
const currentUser = UserStore.getCurrentUser();
const remoteUser = UserStore.getProfile(props.userId);
- const remoteUserImage = Client.getUsersRoute() + '/' + remoteUser.id + '/image?time=' + remoteUser.update_at;
+ const remoteUserImage = Client.getUsersRoute() + '/' + remoteUser.id + '/image?time=' + remoteUser.last_picture_update;
this.state = {
windowWidth: Utils.windowWidth(),
windowHeight: Utils.windowHeight(),
channelId: ChannelStore.getCurrentId(),
currentUser,
- currentUserImage: Client.getUsersRoute() + '/' + currentUser.id + '/image?time=' + currentUser.update_at,
+ currentUserImage: Client.getUsersRoute() + '/' + currentUser.id + '/image?time=' + currentUser.last_picture_update,
remoteUserImage,
localMediaLoaded: false,
isPaused: false,
@@ -130,7 +130,7 @@ export default class WebrtcController extends React.Component {
(nextProps.userId !== this.props.userId) ||
(nextProps.isCaller !== this.props.isCaller)) {
const remoteUser = UserStore.getProfile(nextProps.userId);
- const remoteUserImage = Client.getUsersRoute() + '/' + remoteUser.id + '/image?time=' + remoteUser.update_at;
+ const remoteUserImage = Client.getUsersRoute() + '/' + remoteUser.id + '/image?time=' + remoteUser.last_picture_update;
this.setState({
error: null,
remoteUserImage