diff --git a/ts/components/session/conversation/SessionCompositionBox.tsx b/ts/components/session/conversation/SessionCompositionBox.tsx index f1f679ce2..8669ccb9c 100644 --- a/ts/components/session/conversation/SessionCompositionBox.tsx +++ b/ts/components/session/conversation/SessionCompositionBox.tsx @@ -551,6 +551,11 @@ class SessionCompositionBoxInner extends React.Component { // we try to match the first link found in the current message const links = window.Signal.LinkPreviews.findLinks(this.props.draft, undefined); if (!links || links.length === 0 || ignoredLink === links[0]) { + if (this.state.stagedLinkPreview) { + this.setState({ + stagedLinkPreview: undefined, + }); + } return <>; } const firstLink = links[0]; diff --git a/ts/models/conversation.ts b/ts/models/conversation.ts index 7195fd6a4..8d9ad277b 100644 --- a/ts/models/conversation.ts +++ b/ts/models/conversation.ts @@ -44,6 +44,7 @@ import { getOpenGroupV2FromConversationId } from '../opengroup/utils/OpenGroupUt import { createTaskWithTimeout } from '../session/utils/TaskWithTimeout'; import { perfEnd, perfStart } from '../session/utils/Performance'; import { ReplyingToMessageProps } from '../components/session/conversation/SessionCompositionBox'; +import { ed25519Str } from '../session/onions/onionPath'; export enum ConversationTypeEnum { GROUP = 'group', @@ -231,7 +232,7 @@ export class ConversationModel extends Backbone.Model { return `opengroup(${this.id})`; } - return `group(${this.id})`; + return `group(${ed25519Str(this.id)})`; } public isMe() {