forked from CringeStudios/gamja
Request WHO info w/ empty message list in switchBuffer
This commit is contained in:
parent
9475ffb8c6
commit
94901f1662
@ -350,18 +350,17 @@ export default class App extends Component {
|
|||||||
this.buffer.current.focus();
|
this.buffer.current.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buf.messages.length == 0) {
|
if (buf.messages.length > 0) {
|
||||||
return;
|
let lastMsg = buf.messages[buf.messages.length - 1];
|
||||||
}
|
this.setReceipt(buf.name, ReceiptType.READ, lastMsg);
|
||||||
let lastMsg = buf.messages[buf.messages.length - 1];
|
|
||||||
this.setReceipt(buf.name, ReceiptType.READ, lastMsg);
|
|
||||||
|
|
||||||
let client = this.clients.get(buf.server);
|
let client = this.clients.get(buf.server);
|
||||||
this.bufferStore.put({
|
this.bufferStore.put({
|
||||||
name: buf.name,
|
name: buf.name,
|
||||||
server: client.params,
|
server: client.params,
|
||||||
unread: Unread.NONE,
|
unread: Unread.NONE,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let server = this.state.servers.get(buf.server);
|
let server = this.state.servers.get(buf.server);
|
||||||
if (buf.type === BufferType.NICK && !server.users.has(buf.name)) {
|
if (buf.type === BufferType.NICK && !server.users.has(buf.name)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user