* add feature to combine system messages Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com> * updated copyright to 2015 Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com> * updated per comments Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
29 lines
904 B
JavaScript
29 lines
904 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
import {bindActionCreators} from 'redux';
|
|
|
|
import {getProfilesByIds} from 'mattermost-redux/actions/users';
|
|
|
|
import {getTeammateNameDisplaySetting} from 'mattermost-redux/selectors/entities/preferences';
|
|
import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';
|
|
|
|
import CombinedSystemMessage from './combined_system_message';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
currentUserId: getCurrentUserId(state),
|
|
teammateNameDisplay: getTeammateNameDisplaySetting(state),
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
getProfilesByIds,
|
|
}, dispatch),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(CombinedSystemMessage);
|