diff --git a/index.html b/index.html
index d212414..ce97719 100644
--- a/index.html
+++ b/index.html
@@ -2865,7 +2865,7 @@
}
// remove encryption badge if it exists
if (!groupID && floGlobals.pubKeys[activeChat.floID] && floID !== floDapps.user.id) {
- getRef('warn_no_encryption').remove()
+ document.getElementById('warn_no_encryption')?.remove()
}
}
let chatCard = getChatCard(floID || groupID || pipeID)