Open new buffer on self-message

Closes: https://todo.sr.ht/~emersion/gamja/96
This commit is contained in:
Simon Ser 2021-08-24 14:46:51 +02:00
parent 8a5e52ed9a
commit 4278265c65

View file

@ -456,7 +456,9 @@ export default class App extends Component {
});
}
if (!client.isMyNick(msg.prefix.name) && (msg.command != "PART" && msg.comand != "QUIT")) {
// Open a new buffer if the message doesn't come from me or is a
// self-message
if ((!client.isMyNick(msg.prefix.name) || client.isMyNick(bufName)) && (msg.command != "PART" && msg.comand != "QUIT")) {
this.createBuffer(serverID, bufName);
}