Skip to content

Commit 676d37e

Browse files
committed
fix dms unread indicator
1 parent 6509073 commit 676d37e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/webpage/direct.ts

+9
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,15 @@ class Group extends Channel {
466466
this.idToPrev.set(messagez.id, this.lastmessageid);
467467
}
468468
this.lastmessageid = messagez.id;
469+
470+
if (messagez.author === this.localuser.user) {
471+
const next = this.messages.get(this.idToNext.get(this.lastreadmessageid as string) as string);
472+
this.lastreadmessageid = messagez.id;
473+
if (next) {
474+
next.generateMessage();
475+
}
476+
}
477+
469478
if (messagez.author === this.localuser.user) {
470479
this.lastreadmessageid = messagez.id;
471480
if (this.myhtml) {

0 commit comments

Comments
 (0)