fix dms unread indicator
This commit is contained in:
parent
6509073753
commit
676d37eeb0
1 changed files with 9 additions and 0 deletions
|
@ -466,6 +466,15 @@ class Group extends Channel {
|
|||
this.idToPrev.set(messagez.id, this.lastmessageid);
|
||||
}
|
||||
this.lastmessageid = messagez.id;
|
||||
|
||||
if (messagez.author === this.localuser.user) {
|
||||
const next = this.messages.get(this.idToNext.get(this.lastreadmessageid as string) as string);
|
||||
this.lastreadmessageid = messagez.id;
|
||||
if (next) {
|
||||
next.generateMessage();
|
||||
}
|
||||
}
|
||||
|
||||
if (messagez.author === this.localuser.user) {
|
||||
this.lastreadmessageid = messagez.id;
|
||||
if (this.myhtml) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue