diff --git a/pkg/interface/src/logic/lib/permalinks.ts b/pkg/interface/src/logic/lib/permalinks.ts index cbf7c6fbb..79699f11a 100644 --- a/pkg/interface/src/logic/lib/permalinks.ts +++ b/pkg/interface/src/logic/lib/permalinks.ts @@ -56,6 +56,11 @@ function parseGraphPermalink( }; } +export function permalinkToReference({ any }: any): any { + //TODO write this function + return { reference: '' } +} + export function referenceToPermalink({ reference }: ReferenceContent): Permalink { if('graph' in reference) { const { graph, group, index } = reference.graph; diff --git a/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx b/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx index 128ff3801..aa9259953 100644 --- a/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx +++ b/pkg/interface/src/views/apps/chat/components/ChatMessage.tsx @@ -279,10 +279,11 @@ class ChatMessage extends Component { showOurContact, fontSize, hideHover - onReply = () => {}, - transcluded = 0 } = this.props; + let onReply = this.props?.onReply; + onReply ??= () => {}; + const transcluded = this.props?.transcluded ?? 0; let { renderSigil } = this.props; if (renderSigil === undefined) {