mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Remove network from map when closing
This commit is contained in:
parent
3975467764
commit
6cb2dd59de
@ -760,6 +760,11 @@ export default class App extends Component {
|
|||||||
activeBuffer: null,
|
activeBuffer: null,
|
||||||
});
|
});
|
||||||
this.disconnect(buf.network);
|
this.disconnect(buf.network);
|
||||||
|
this.setState((state) => {
|
||||||
|
var networks = new Map(state.networks);
|
||||||
|
networks.delete(buf.network);
|
||||||
|
return { networks };
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
case BufferType.CHANNEL:
|
case BufferType.CHANNEL:
|
||||||
this.client.send({ command: "PART", params: [buf.name] });
|
this.client.send({ command: "PART", params: [buf.name] });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user