summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/switch_channel_provider.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/suggestion/switch_channel_provider.jsx')
-rw-r--r--webapp/components/suggestion/switch_channel_provider.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/suggestion/switch_channel_provider.jsx b/webapp/components/suggestion/switch_channel_provider.jsx
index ba060d924..ac4af9c8b 100644
--- a/webapp/components/suggestion/switch_channel_provider.jsx
+++ b/webapp/components/suggestion/switch_channel_provider.jsx
@@ -58,7 +58,7 @@ class SwitchChannelSuggestion extends Suggestion {
<div className='pull-left'>
<img
className='mention__image'
- src={Client4.getUsersRoute() + '/' + channel.id + '/image?time=' + channel.last_picture_update}
+ src={Utils.imageURLForUser(channel)}
/>
</div>
);
@@ -239,7 +239,8 @@ export default class SwitchChannelProvider extends Provider {
name: user.username,
id: user.id,
update_at: user.update_at,
- type: Constants.DM_CHANNEL
+ type: Constants.DM_CHANNEL,
+ last_picture_update: user.last_picture_update || 0
},
name: user.username
};