|
@@ -58,7 +58,7 @@ class PrivateMessageButton extends AbstractButton<Props, any> {
|
58
|
58
|
toggledIcon = IconReply;
|
59
|
59
|
|
60
|
60
|
/**
|
61
|
|
- * Handles clicking / pressing the button, and kicks the participant.
|
|
61
|
+ * Handles clicking / pressing the button.
|
62
|
62
|
*
|
63
|
63
|
* @private
|
64
|
64
|
* @returns {void}
|
|
@@ -67,6 +67,7 @@ class PrivateMessageButton extends AbstractButton<Props, any> {
|
67
|
67
|
if (this.props._isLobbyMessage) {
|
68
|
68
|
this.props.dispatch(handleLobbyChatInitialized(this.props.participantID));
|
69
|
69
|
}
|
|
70
|
+
|
70
|
71
|
this.props._isPollsDisabled
|
71
|
72
|
? navigate(screen.conference.chat, {
|
72
|
73
|
privateMessageRecipient: this.props._participant
|
|
@@ -102,11 +103,11 @@ class PrivateMessageButton extends AbstractButton<Props, any> {
|
102
|
103
|
export function _mapStateToProps(state: Object, ownProps: Props): $Shape<Props> {
|
103
|
104
|
const enabled = getFeatureFlag(state, CHAT_ENABLED, true);
|
104
|
105
|
const { disablePolls } = state['features/base/config'];
|
105
|
|
- const { visible = enabled, isLobbyMessage } = ownProps;
|
|
106
|
+ const { visible = enabled, isLobbyMessage, participantID } = ownProps;
|
106
|
107
|
|
107
|
108
|
return {
|
108
|
109
|
_isPollsDisabled: disablePolls,
|
109
|
|
- _participant: getParticipantById(state, ownProps.participantID),
|
|
110
|
+ _participant: getParticipantById(state, participantID),
|
110
|
111
|
_isLobbyMessage: isLobbyMessage,
|
111
|
112
|
visible
|
112
|
113
|
};
|