diff --git a/js/ui/profileModalController.js b/js/ui/profileModalController.js index f3c94262..421acc6e 100644 --- a/js/ui/profileModalController.js +++ b/js/ui/profileModalController.js @@ -4498,6 +4498,11 @@ export class ProfileModalController { this.setDirectMessageRecipient(threadsToRender[0].remoteHex, { reason: "thread-default", }); + const conversationId = this.buildDmConversationId( + normalizedActor, + threadsToRender[0].remoteHex, + ); + this.setFocusedDmConversation(conversationId); } else if (hasActiveRecipient) { this.updateMessageThreadSelection(activeRecipient); } @@ -4564,6 +4569,8 @@ export class ProfileModalController { timeline, } = await this.buildDmConversationData(snapshot, { actorPubkey }); + this.setFocusedDmConversation(activeConversationId); + const currentRecipient = this.resolveActiveDmRecipient(); if (!currentRecipient && activeThread?.remoteHex) { this.setDirectMessageRecipient(activeThread.remoteHex, {