Browse Source

fix ad-hoc commands sessionid

genofire 5 years ago
parent
commit
b1817daa12
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/adhoc-commands.js

+ 1 - 1
src/components/adhoc-commands.js

@@ -213,7 +213,7 @@ export class AdHocCommands extends CustomElement {
 
 
         const iq = $iq({to: jid, type: "set"})
         const iq = $iq({to: jid, type: "set"})
             .c("command", {
             .c("command", {
-                'sessionid': cmd.session,
+                'sessionid': cmd.sessionid,
                 'node': cmd.node,
                 'node': cmd.node,
                 'xmlns': Strophe.NS.ADHOC
                 'xmlns': Strophe.NS.ADHOC
             }).c("x", {xmlns: Strophe.NS.XFORM, type: "submit"});
             }).c("x", {xmlns: Strophe.NS.XFORM, type: "submit"});