fix: apply screen share output limits at sender

This commit is contained in:
illusia committed 2026-09-23 14:34:48 +08:00
1 parent 193130c50f
commit 1bab4df64e
6 files changed
+106 -24

No files matched your search

+6
View File
@@ -390,6 +390,12 @@ export class WebSpeakDatabase {
return nextNumber;
}
getVisitorCount(): number {
const value = this.getMeta("visitor_count");
const count = value ? Number.parseInt(value, 10) : 0;
return Number.isSafeInteger(count) && count >= 0 ? count : 0;
}
addAudit(event: string, details: Record<string, unknown> = {}): void {
this.insertAudit(event, details, new Date().toISOString());
}