forked from CringeStudios/gamja
Update buffer store when marking all buffers as read
This commit is contained in:
parent
77683937d7
commit
73a2bcab94
@ -23,9 +23,18 @@ export const keybindings = [
|
||||
let lastMsg = buf.messages[buf.messages.length - 1];
|
||||
app.setReceipt(buf.name, ReceiptType.READ, lastMsg);
|
||||
}
|
||||
|
||||
buffers.set(buf.id, {
|
||||
...buf,
|
||||
unread: Unread.NONE,
|
||||
prevReadReceipt: null,
|
||||
});
|
||||
|
||||
let client = app.clients.get(buf.server);
|
||||
app.bufferStore.put({
|
||||
name: buf.name,
|
||||
server: client.params,
|
||||
unread: Unread.NONE,
|
||||
});
|
||||
});
|
||||
return { buffers };
|
||||
|
Loading…
x
Reference in New Issue
Block a user