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:
+2
-2
@@ -305,11 +305,11 @@ export default class App extends Component {
|
||||
return;
|
||||
}
|
||||
|
||||
let lastReadReceipt = this.getReceipt(buf.name, ReceiptType.READ);
|
||||
let prevReadReceipt = this.getReceipt(buf.name, ReceiptType.READ);
|
||||
// TODO: only mark as read if user scrolled at the bottom
|
||||
this.setBufferState(buf.id, {
|
||||
unread: Unread.NONE,
|
||||
lastReadReceipt,
|
||||
prevReadReceipt,
|
||||
});
|
||||
|
||||
if (this.buffer.current) {
|
||||
|
||||
Reference in New Issue
Block a user