Merge pull request #1613 from florianorben/PLT-1326

PLT-1326: Enable channel posts of type join or leave not trigger unread notifications
Этот коммит содержится в:
Corey Hulen
2015-12-04 11:30:50 -08:00
родитель 1d67f26664 14d1ec5191
Коммит 1bee1e06e4
14 изменённых файлов: 93 добавлений и 13 удалений

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

@@ -163,7 +163,7 @@ function handleNewPostEvent(msg) {
}
// Send desktop notification
if (UserStore.getCurrentId() !== msg.user_id || post.props.from_webhook === 'true') {
if ((UserStore.getCurrentId() !== msg.user_id || post.props.from_webhook === 'true') && !Utils.isSystemMessage(post)) {
const msgProps = msg.props;
let mentions = [];