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 GitHub
parent 9cbffff248
commit 991d7156a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,