Update channel join status when kicked

This commit is contained in:
Simon Ser 2021-12-04 16:52:38 +01:00
parent ada9ff3b71
commit 30e3ec392f

View file

@ -463,7 +463,10 @@ export const State = {
return updateBuffer(channel, (buf) => { return updateBuffer(channel, (buf) => {
let members = new irc.CaseMapMap(buf.members); let members = new irc.CaseMapMap(buf.members);
members.delete(nick); members.delete(nick);
return { members };
let joined = buf.joined && !client.isMyNick(nick);
return { members, joined };
}); });
case "QUIT": case "QUIT":
buffers = new Map(state.buffers); buffers = new Map(state.buffers);