Fix sending to embedded contact
This commit is contained in:
parent
bae3394efc
commit
e0f479ca81
3 changed files with 14 additions and 6 deletions
|
@ -564,8 +564,10 @@ export class Timeline extends React.Component<
|
|||
public override componentDidMount(): void {
|
||||
const containerEl = this.containerRef.current;
|
||||
const messagesEl = this.messagesRef.current;
|
||||
const { isConversationSelected } = this.props;
|
||||
strictAssert(
|
||||
containerEl && messagesEl,
|
||||
// We don't render anything unless the conversation is selected
|
||||
(containerEl && messagesEl) || !isConversationSelected,
|
||||
'<Timeline> mounted without some refs'
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue