Regression: Jump to message from search view (#4476)
This commit is contained in:
parent
9cbffff248
commit
991d7156a9
|
@ -115,12 +115,14 @@ class MessageContainer extends React.Component<IMessageContainerProps, IMessageC
|
|||
}
|
||||
}
|
||||
|
||||
closeEmojiAndAction = () => {
|
||||
onPressAction = () => {
|
||||
const { closeEmojiAndAction } = this.props;
|
||||
|
||||
if (closeEmojiAndAction) {
|
||||
closeEmojiAndAction(this.onPress);
|
||||
return closeEmojiAndAction(this.onPress);
|
||||
}
|
||||
|
||||
return this.onPress();
|
||||
};
|
||||
|
||||
onPress = debounce(
|
||||
|
@ -382,7 +384,7 @@ class MessageContainer extends React.Component<IMessageContainerProps, IMessageC
|
|||
value={{
|
||||
user,
|
||||
baseUrl,
|
||||
onPress: this.closeEmojiAndAction,
|
||||
onPress: this.onPressAction,
|
||||
onLongPress: this.onLongPress,
|
||||
reactionInit: this.reactionInit,
|
||||
onErrorPress: this.onErrorPress,
|
||||
|
|
Loading…
Reference in New Issue