PLT-1326: Enable channel posts of type join or leave not trigger unread notifications

Этот коммит содержится в:
Florian Orben
2015-12-04 02:07:47 +01:00
родитель d5d66214db
Коммит 14d1ec5191
14 изменённых файлов: 93 добавлений и 13 удалений

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

@@ -3,6 +3,9 @@
import UserProfile from './user_profile.jsx';
import PostInfo from './post_info.jsx';
import * as Utils from '../utils/utils.jsx';
import Constants from '../utils/constants.jsx';
export default class PostHeader extends React.Component {
constructor(props) {
@@ -27,6 +30,15 @@ export default class PostHeader extends React.Component {
}
botIndicator = <li className='col col__name bot-indicator'>{'BOT'}</li>;
} else if (Utils.isSystemMessage(post)) {
userProfile = (
<UserProfile
userId={''}
overwriteName={''}
overwriteImage={Constants.SYSTEM_MESSAGE_PROFILE_IMAGE}
disablePopover={true}
/>
);
}
return (