mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-05-24 19:35:24 +00:00
more unread fixes
This commit is contained in:
+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