mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
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];
|
let lastMsg = buf.messages[buf.messages.length - 1];
|
||||||
app.setReceipt(buf.name, ReceiptType.READ, lastMsg);
|
app.setReceipt(buf.name, ReceiptType.READ, lastMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
buffers.set(buf.id, {
|
buffers.set(buf.id, {
|
||||||
...buf,
|
...buf,
|
||||||
unread: Unread.NONE,
|
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 };
|
return { buffers };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user