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:
@@ -479,7 +479,7 @@ export default class Buffer extends Component {
|
||||
buf.messages.forEach((msg) => {
|
||||
let sep = [];
|
||||
|
||||
if (!hasUnreadSeparator && buf.type != BufferType.SERVER && buf.lastReadReceipt && msg.tags.time > buf.lastReadReceipt.time) {
|
||||
if (!hasUnreadSeparator && buf.type != BufferType.SERVER && buf.prevReadReceipt && msg.tags.time > buf.prevReadReceipt.time) {
|
||||
sep.push(html`<${UnreadSeparator} key="unread"/>`);
|
||||
hasUnreadSeparator = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user