fix bug fr this time

This commit is contained in:
MathMan05 committed 2025-11-29 20:43:20 -06:00
1 parent a3eda98fee
commit ba919018dc
1 file changed
+13 -10
+13 -10
View File
@@ -1847,18 +1847,21 @@ class Channel extends SnowFlake {
let showing = false;
let i = 0;
const curtime = Date.now() - 5000;
for (const thing of this.typingmap.keys().filter((_) => _.id !== this.localuser.user.id)) {
for (const thing of this.typingmap.keys()) {
const self = thing.id === this.localuser.user.id;
if ((this.typingmap.get(thing) as number) > curtime) {
if (i !== 0) {
build += ", ";
if (!self) {
if (i !== 0) {
build += ", ";
}
i++;
if (thing.nick) {
build += thing.nick;
} else {
build += thing.user.username;
}
showing = true;
}
i++;
if (thing.nick) {
build += thing.nick;
} else {
build += thing.user.username;
}
showing = true;
} else {
this.typingmap.delete(thing);
}