forked from CringeStudios/gamja
Fix unread indicator not showing up
This commit is contained in:
parent
9223953e3a
commit
80fee31f2c
@ -114,16 +114,16 @@ export default class App extends Component {
|
|||||||
msg.tags["time"] = `${YYYY}-${MM}-${DD}T${hh}:${mm}:${ss}.${sss}Z`;
|
msg.tags["time"] = `${YYYY}-${MM}-${DD}T${hh}:${mm}:${ss}.${sss}Z`;
|
||||||
}
|
}
|
||||||
|
|
||||||
var unread = Unread.NONE;
|
var msgUnread = Unread.NONE;
|
||||||
if (msg.command == "PRIVMSG" || msg.command == "NOTICE") {
|
if (msg.command == "PRIVMSG" || msg.command == "NOTICE") {
|
||||||
unread = Unread.MESSAGE;
|
msgUnread = Unread.MESSAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.createBuffer(bufName);
|
this.createBuffer(bufName);
|
||||||
this.setBufferState(bufName, (buf, state) => {
|
this.setBufferState(bufName, (buf, state) => {
|
||||||
var unread = buf.unread;
|
var unread = buf.unread;
|
||||||
if (state.activeBuffer != buf.name) {
|
if (state.activeBuffer != buf.name) {
|
||||||
unread = Unread.union(buf.unread, unread);
|
unread = Unread.union(unread, msgUnread);
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
messages: buf.messages.concat(msg),
|
messages: buf.messages.concat(msg),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user