summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterimcontainer.cpp
diff options
context:
space:
mode:
authorJonathan "Geenz" Goodman <geenz@lindenlab.com>2026-05-20 12:05:18 -0400
committerGitHub <noreply@github.com>2026-05-20 12:05:18 -0400
commit40cd1617a6a663fb921265101307454b490ec4ba (patch)
tree2f13741295c385172364e3fa940d7591f32fac4e /indra/newview/llfloaterimcontainer.cpp
parent9c2ee024bef564ebb6e2e8942b43ffae1d99232c (diff)
parentdf844170600608b37c2725f7a263f1de3b055618 (diff)
Merge branch 'develop' into geenz/26.3-to-develop
Diffstat (limited to 'indra/newview/llfloaterimcontainer.cpp')
-rw-r--r--indra/newview/llfloaterimcontainer.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/indra/newview/llfloaterimcontainer.cpp b/indra/newview/llfloaterimcontainer.cpp
index ef4252eba6..c2a9008420 100644
--- a/indra/newview/llfloaterimcontainer.cpp
+++ b/indra/newview/llfloaterimcontainer.cpp
@@ -158,15 +158,23 @@ void LLFloaterIMContainer::sessionIDUpdated(const LLUUID& old_session_id, const
// Note however that the LLFloaterIMSession has its session id updated through a call to sessionInitReplyReceived()
// and do not need to be deleted and recreated (trying this creates loads of problems). We do need however to suppress
// its related mSessions record as it's indexed with the wrong id.
- // Grabbing the updated LLFloaterIMSession and readding it in mSessions will eventually be done by addConversationListItem().
mSessions.erase(old_session_id);
- // Delete the model and participants related to the old session
- bool change_focus = removeConversationListItem(old_session_id);
+ // Remove the old conversation widget without changing focus - we'll immediately re-add with
+ // the new id and select it, avoiding an unnecessary focus switch to an adjacent conversation.
+ bool was_selected = removeConversationListItem(old_session_id, false);
// Create a new conversation with the new id
- addConversationListItem(new_session_id, change_focus);
+ addConversationListItem(new_session_id, was_selected);
LLFloaterIMSessionTab::addToHost(new_session_id);
+
+ // addToHost is a no-op for already-hosted floaters, so mSessions won't be
+ // updated by addFloater. Re-register manually so message flash works.
+ LLFloaterIMSessionTab* conversp = LLFloaterIMSessionTab::findConversation(new_session_id);
+ if (conversp && mSessions.find(new_session_id) == mSessions.end())
+ {
+ mSessions[new_session_id] = conversp;
+ }
}