mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Fix messages in current buffer not marked as read
This commit is contained in:
parent
a83d3f7425
commit
525df515bc
@ -418,11 +418,11 @@ export default class App extends Component {
|
|||||||
|
|
||||||
this.setReceipt(bufName, ReceiptType.DELIVERED, msg);
|
this.setReceipt(bufName, ReceiptType.DELIVERED, msg);
|
||||||
|
|
||||||
this.setBufferState({ network: netID, name: bufName}, (buf, state) => {
|
this.setBufferState({ network: netID, name: bufName}, (buf) => {
|
||||||
// TODO: set unread if scrolled up
|
// TODO: set unread if scrolled up
|
||||||
var unread = buf.unread;
|
var unread = buf.unread;
|
||||||
var lastReadReceipt = buf.lastReadReceipt;
|
var lastReadReceipt = buf.lastReadReceipt;
|
||||||
if (state.activeBuffer != buf.id) {
|
if (this.state.activeBuffer != buf.id) {
|
||||||
unread = Unread.union(unread, msgUnread);
|
unread = Unread.union(unread, msgUnread);
|
||||||
} else {
|
} else {
|
||||||
this.setReceipt(bufName, ReceiptType.READ, msg);
|
this.setReceipt(bufName, ReceiptType.READ, msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user