add helper method to add ephemeral messages; also switch 'delete message' to this new method

Этот коммит содержится в:
Florian Orben
2015-12-04 20:18:49 +01:00
родитель 985dc06e5f
Коммит 99d79eee56
5 изменённых файлов: 104 добавлений и 49 удалений

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

@@ -179,7 +179,7 @@ export default class Post extends React.Component {
}
let profilePic = null;
if (!this.props.hideProfilePic) {
if (!this.props.hideProfilePic && post.user_id !== '0') {
let src = '/api/v1/users/' + post.user_id + '/image?time=' + timestamp + '&' + utils.getSessionIndex();
if (post.props && post.props.from_webhook && global.window.mm_config.EnablePostIconOverride === 'true') {
if (post.props.override_icon_url) {