A disconnect somebody asked for is not reported as an error (#246)

Runtime::disconnect marked the account disconnected with error
"cancelled", which the window shows as an error toast - so every
Disconnect, and every account removal, announced a failure. Found walking
a fresh install on Windows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-03 21:55:42 -04:00
co-authored by Claude Opus 5.5
parent 2f5918ec6e
commit 8bcba8bd23
+4 -1
View File
@@ -4050,7 +4050,10 @@ impl Runtime {
// running any of its own cleanup, so the state transition
// that would normally happen at the end of backend::irc::
// spawn()'s task has to happen here instead.
self.set_conn_state(state, account_id, ConnState::Disconnected, Some("cancelled"));
// No error: this is the disconnect somebody asked for. Said
// as one, every Disconnect and every removal put up an error
// toast reading "cancelled".
self.set_conn_state(state, account_id, ConnState::Disconnected, None);
true
}
None => false,