Regression: Jump to message from search view (#4476)

This commit is contained in:
Reinaldo Neto 2022-08-30 17:59:10 -03:00 committed by Diego Mello
parent 360ecc1f43
commit 47c02308c0
1 changed files with 5 additions and 3 deletions

View File

@ -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,