From e2614b815ad1ddcdde591ef9693f991a24419e94 Mon Sep 17 00:00:00 2001
From: ubermanu <e.vodor@gmail.com>
Date: Wed, 3 Mar 2021 14:21:56 +0100
Subject: [PATCH] bugfix: Remove optional chaining into converse.js as well

---
 src/conversejs/converse.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conversejs/converse.js b/src/conversejs/converse.js
index 2b95ef7..1063c0f 100644
--- a/src/conversejs/converse.js
+++ b/src/conversejs/converse.js
@@ -78330,7 +78330,7 @@ const MessageMixin = {
     xhr.setRequestHeader('Content-type', this.file.type);
 
     // Add custom headers to request
-    this.get('headers')?.forEach(header => {
+    this.get('headers').forEach(header => {
       xhr.setRequestHeader(header.getAttribute('name'), header.innerHTML);
     });
 
-- 
GitLab