mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
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:
1 file changed
+7
@@ -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, {
|
||||
|
||||
Reference in new issue
Block a user