fail quietly when search messagelookup gets dropped

This commit is contained in:
Jamie Kyle 2023-06-21 15:02:07 -07:00 committed by GitHub
parent 7c5e6166ab
commit aacf37b6d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 1 deletions

View file

@ -95,6 +95,7 @@ export const MessageSearchResult: FunctionComponent<PropsType> = React.memo(
}, [showConversation, conversationId, id]);
if (!from || !to) {
// Note: mapStateToProps() may return null if the message is not found.
return <div />;
}