From ee3923f1690bb7db26f9dbb107167e365c5538d2 Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Sun, 1 Feb 2026 12:57:04 -0500 Subject: [PATCH] Update DM focus on default selection --- js/ui/profileModalController.js | 7 +++++++ 1 file changed, 7 insertions(+) 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, {