Restore same-URL guard in replaceServer

Accidentally dropped during the Music tab removal edit; without it,
reapplying the current URL recreates the session and loses history.
This commit is contained in:
snowspeeder committed 2026-09-12 06:57:32 -04:00
1 parent ed329213de
commit c5db94658d
1 file changed
+1
@@ -72,6 +72,7 @@ struct ConversationView: View {
// Coalesce rapid Apply actions; construct from the captured URL.
while let next = pendingServerURL {
pendingServerURL = nil
guard next != activeServerURL else { continue }
await session.disconnect()
activeServerURL = next
session = Self.makeSession(next, settings: settings)