From f5ef2aac0fa982208ca601622df8c81483d4396e Mon Sep 17 00:00:00 2001
From: Patrik Oberschmid
Date: Wed, 15 Apr 2026 17:19:08 +0200
Subject: [PATCH] Match ZeitConsens user case-insensitively
The saved tapi-zc-user and the server's MA_USER_NAME are compared
to decide whether to auto-switch the 3CX presence. A mismatch in
capitalization between the two sources silently disabled the sync,
so both are lowercased before comparison.
---
client/src/status.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/src/status.ts b/client/src/status.ts
index b44feb8..5732cec 100644
--- a/client/src/status.ts
+++ b/client/src/status.ts
@@ -42,7 +42,7 @@ export class Status {
if (!this._enabled || !this._user) {
return;
}
- var entry = avs.find(a => a.user === this._user);
+ var entry = avs.find(a => a.user.toLowerCase() === this._user.toLowerCase());
if (!entry) {
return;
}