From 813d3104ca45ffd4b91dceb2717bab6fa88df6f2 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 15 Jul 2025 16:30:47 +0000 Subject: [PATCH] Improve length check for more reliable presence evaluation --- Phone/phone.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Phone/phone.js b/Phone/phone.js index 4aa2ae7f..5fcbce7c 100644 --- a/Phone/phone.js +++ b/Phone/phone.js @@ -4788,7 +4788,7 @@ function ReceiveNotify(notification, selfSubscribe) { var Presence = "Unknown"; var ContentType = ""; - if(notification.request.headers.length > 0 && notification.request.headers["Content-Type"] && notification.request.headers["Content-Type"][0]){ + if(Object.keys(notification.request.headers).length > 0 && notification.request.headers["Content-Type"] && notification.request.headers["Content-Type"][0]){ ContentType = notification.request.headers["Content-Type"][0].parsed; } if (ContentType == "application/pidf+xml") {