mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Remove network from map when closing
This commit is contained in:
parent
3975467764
commit
6cb2dd59de
1 changed files with 5 additions and 0 deletions
|
@ -760,6 +760,11 @@ export default class App extends Component {
|
|||
activeBuffer: null,
|
||||
});
|
||||
this.disconnect(buf.network);
|
||||
this.setState((state) => {
|
||||
var networks = new Map(state.networks);
|
||||
networks.delete(buf.network);
|
||||
return { networks };
|
||||
});
|
||||
break;
|
||||
case BufferType.CHANNEL:
|
||||
this.client.send({ command: "PART", params: [buf.name] });
|
||||
|
|
Loading…
Reference in a new issue