From 62d504da072d676a3177fc29afc88c96d2044e9f Mon Sep 17 00:00:00 2001
From: Dele Olajide <dele@4ng.net>
Date: Wed, 6 May 2020 10:46:38 +0100
Subject: [PATCH] Fix Converse RAI - $msg is not defined (#144)

---
 plugins/converse-rai.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/converse-rai.js b/plugins/converse-rai.js
index 6522f9e..4e6fa73 100644
--- a/plugins/converse-rai.js
+++ b/plugins/converse-rai.js
@@ -75,13 +75,13 @@
     {
         console.debug("sendMarker", to_jid, id, type);
 
-        const stanza = $msg({
+        const stanza = converse.env.$msg({
           'from': _converse.connection.jid,
           'id': Math.random().toString(36).substr(2,9),
           'to': to_jid,
           'type': 'chat'
         }).c(type, {
-          'xmlns': Strophe.NS.MARKERS,
+          'xmlns': converse.env.Strophe.NS.MARKERS,
           'id': id
         });
 
-- 
GitLab