Don't drop unread marker in addMessage

Closes: https://todo.sr.ht/~emersion/gamja/76
This commit is contained in:
Simon Ser 2021-08-24 13:59:33 +02:00
parent b14cddc0d0
commit 6e59a77672
2 changed files with 2 additions and 3 deletions

View file

@ -275,6 +275,7 @@ export const State = {
offline: false, // if nick
messages: [],
unread: Unread.NONE,
lastReadReceipt: null,
});
bufferList = bufferList.sort(compareBuffers);
let buffers = new Map(bufferList.map((buf) => [buf.id, buf]));