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:
+4
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user