fail quietly when search messagelookup gets dropped
This commit is contained in:
parent
7c5e6166ab
commit
aacf37b6d8
3 changed files with 24 additions and 1 deletions
|
@ -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 />;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue