Rename buffer lastReadReceipt to prevReadReceipt

This field is intentionally behind the latest read receipt. Let's
rename it to make that clearer.
This commit is contained in:
Simon Ser
2021-08-24 14:01:57 +02:00
parent 6e59a77672
commit 8a5e52ed9a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ export const State = {
offline: false, // if nick
messages: [],
unread: Unread.NONE,
lastReadReceipt: null,
prevReadReceipt: null,
});
bufferList = bufferList.sort(compareBuffers);
let buffers = new Map(bufferList.map((buf) => [buf.id, buf]));