Outgoing: Ensure that sends still succeed without CDS

This commit is contained in:
Scott Nonnenberg 2020-09-16 07:22:46 -07:00 committed by Josh Perez
parent ce067258a0
commit ec8ac1db58
4 changed files with 30 additions and 18 deletions

View file

@ -23,10 +23,9 @@ export const SmartContactName: React.ComponentType<ExternalProps> = props => {
getConversationSelector
);
const conversation = getConversation(conversationId);
if (!conversation) {
throw new Error(`Conversation id ${conversationId} not found!`);
}
const conversation = getConversation(conversationId) || {
title: i18n('unknownContact'),
};
return <ContactName i18n={i18n} {...conversation} />;
};