PLT-5118 moving to last_picture_update for the profile img (#4985)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
1aa235b10d
Коммит
e82bcea0d0
@@ -197,7 +197,7 @@ export default class WebrtcNotification extends React.Component {
|
||||
const user = this.state.userCalling;
|
||||
if (user) {
|
||||
const username = Utils.displayUsername(user.id);
|
||||
const profileImgSrc = Client.getUsersRoute() + '/' + user.id + '/image?time=' + (user.update_at || new Date().getTime());
|
||||
const profileImgSrc = Client.getUsersRoute() + '/' + user.id + '/image?time=' + (user.last_picture_update || new Date().getTime());
|
||||
const profileImg = (
|
||||
<img
|
||||
className='user-popover__image'
|
||||
|
||||
@@ -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
|
||||
|
||||
Ссылка в новой задаче
Block a user