Add away indicator

This commit is contained in:
Simon Ser 2020-06-26 12:45:27 +02:00
parent c59a8ff63c
commit 0bd2e10631
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
4 changed files with 26 additions and 2 deletions

View file

@ -327,6 +327,14 @@ export default class App extends Component {
this.setBufferState(channel, { topic });
this.addMessage(channel, msg);
break;
case "AWAY":
var awayMessage = msg.params[0];
this.setBufferState(msg.prefix.name, (buf) => {
var who = { ...buf.who, away: !!awayMessage };
return { who };
});
break;
case "CAP":
case "AUTHENTICATE":
// Ignore these