mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix: apply screen share output limits at sender
This commit is contained in:
1 parent
193130c50f
commit
1bab4df64e
6 files changed
+106
-24
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user