Update buffer store when marking all buffers as read

This commit is contained in:
Simon Ser 2021-08-25 08:47:35 +02:00
parent 77683937d7
commit 73a2bcab94

View File

@ -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 };