Merge pull request #2052 from PR0M3TH3AN/codex/update-conversation-focus-handling-in-profilemodalcontroller

Sync focused DM conversation on default selection and DM shell render
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-02-01 12:57:29 -05:00
commit 85e24beabf
1 file changed
+7
+7
View File
@@ -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, {