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:
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.
|
// Coalesce rapid Apply actions; construct from the captured URL.
|
||||||
while let next = pendingServerURL {
|
while let next = pendingServerURL {
|
||||||
pendingServerURL = nil
|
pendingServerURL = nil
|
||||||
|
guard next != activeServerURL else { continue }
|
||||||
await session.disconnect()
|
await session.disconnect()
|
||||||
activeServerURL = next
|
activeServerURL = next
|
||||||
session = Self.makeSession(next, settings: settings)
|
session = Self.makeSession(next, settings: settings)
|
||||||
|
|||||||
Reference in new issue
Block a user