mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
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`;
|
||||
}
|
||||
|
||||
var unread = Unread.NONE;
|
||||
var msgUnread = Unread.NONE;
|
||||
if (msg.command == "PRIVMSG" || msg.command == "NOTICE") {
|
||||
unread = Unread.MESSAGE;
|
||||
msgUnread = Unread.MESSAGE;
|
||||
}
|
||||
|
||||
this.createBuffer(bufName);
|
||||
this.setBufferState(bufName, (buf, state) => {
|
||||
var unread = buf.unread;
|
||||
if (state.activeBuffer != buf.name) {
|
||||
unread = Unread.union(buf.unread, unread);
|
||||
unread = Unread.union(unread, msgUnread);
|
||||
}
|
||||
return {
|
||||
messages: buf.messages.concat(msg),
|
||||
|
Loading…
x
Reference in New Issue
Block a user