mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 17:12:25 +00:00
more unread fixes
This commit is contained in:
1 parent
7647b2398d
commit
4e126501eb
1 file changed
+11
-1
+11
-1
@@ -46,7 +46,17 @@ class Channel extends SnowFlake {
|
||||
topic!: string;
|
||||
nsfw!: boolean;
|
||||
position: number = 0;
|
||||
lastreadmessageid?: string;
|
||||
private lastreadmessageidint?: string;
|
||||
get lastreadmessageid() {
|
||||
return this.lastreadmessageidint;
|
||||
}
|
||||
set lastreadmessageid(id: string | undefined) {
|
||||
const cur = this.lastreadmessageidint;
|
||||
this.lastreadmessageidint = id;
|
||||
const m = this.messages.get(cur as string);
|
||||
if (!m) return;
|
||||
m.generateMessage();
|
||||
}
|
||||
lastmessageid?: string;
|
||||
trueLastMessageid?: string;
|
||||
rate_limit_per_user: number = 0;
|
||||
|
||||
Reference in new issue
Block a user