mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-01 02:12:26 +00:00
Update DM focus on default selection
This commit is contained in:
1 parent
7fb817de7f
commit
ee3923f169
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