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