Update DM focus on default selection

This commit is contained in:
thePR0M3TH3AN committed 2026-02-01 12:57:04 -05:00
1 parent 7fb817de7f
commit ee3923f169
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, {