forked from CringeStudios/gamja
Don't drop unread marker in addMessage
Closes: https://todo.sr.ht/~emersion/gamja/76
This commit is contained in:
parent
b14cddc0d0
commit
6e59a77672
@ -467,19 +467,17 @@ export default class App extends Component {
|
||||
this.setBufferState(bufID, (buf) => {
|
||||
// TODO: set unread if scrolled up
|
||||
let unread = buf.unread;
|
||||
let lastReadReceipt = buf.lastReadReceipt;
|
||||
if (this.state.activeBuffer !== buf.id) {
|
||||
unread = Unread.union(unread, msgUnread);
|
||||
} else {
|
||||
this.setReceipt(bufName, ReceiptType.READ, msg);
|
||||
lastReadReceipt = this.getReceipt(bufName, ReceiptType.READ);
|
||||
}
|
||||
this.bufferStore.put({
|
||||
name: buf.name,
|
||||
server: client.params,
|
||||
unread,
|
||||
});
|
||||
return { unread, lastReadReceipt };
|
||||
return { unread };
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user