Properly load profile for new posts that have unloaded users (#4578)

Этот коммит содержится в:
Joram Wilander
2016-11-21 12:17:21 -05:00
коммит произвёл Harrison Healey
родитель 3f19ccf1b1
Коммит 50ab9626eb
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@@ -90,7 +90,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.update_at;
var timestamp = user ? user.update_at : 0;
var channel = ChannelStore.get(post.channel_id);
const flagIcon = Constants.FLAG_ICON_SVG;