Revert "add helper method to add ephemeral messages; also switch 'delete mess…"

Этот коммит содержится в:
Christopher Speller
2015-12-10 08:32:30 -05:00
родитель 47c3ff91a3
Коммит e80129a0e9
5 изменённых файлов: 49 добавлений и 104 удалений

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

@@ -160,15 +160,11 @@ function handleNewPostEvent(msg) {
AsyncClient.updateLastViewedAt();
}
} else if (UserStore.getCurrentId() !== msg.user_id || post.type !== Constants.POST_TYPE_JOIN_LEAVE) {
if (msg.props.ephemeral) {
AsyncClient.getChannelAndAddUnreadMessages(msg.channel_id, 1);
} else {
AsyncClient.getChannel(msg.channel_id);
}
AsyncClient.getChannel(msg.channel_id);
}
// Send desktop notification
if ((UserStore.getCurrentId() !== msg.user_id || post.props.from_webhook === 'true') && !Utils.isSystemMessage(post) && !post.props.disable_notification) {
if ((UserStore.getCurrentId() !== msg.user_id || post.props.from_webhook === 'true') && !Utils.isSystemMessage(post)) {
const msgProps = msg.props;
let mentions = [];