JC Brand 7 年之前
父节点
当前提交
4b64522c18
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      CHANGES.md
  2. 1 1
      src/converse-chatview.js

+ 1 - 0
CHANGES.md

@@ -5,6 +5,7 @@
 ### Bugfixes
 
 - Could not register on Ejabberd 18. `"Missing attribute 'id' in tag qualified by namespace 'jabber:client'"`
+- #993 `moment.format` is not a function error when sending a message.
 - #994 TypeError when using the `user.login` API.
 - #995 `ChildNode.replaceWith` is not available in Internet Explorer or Safari. Use `Node.replaceChild` instead.
 

+ 1 - 1
src/converse-chatview.js

@@ -714,7 +714,7 @@
                             .c('forwarded', {'xmlns': Strophe.NS.FORWARD})
                             .c('delay', {
                                 'xmns': Strophe.NS.DELAY,
-                                'stamp': moment.format()
+                                'stamp': moment().format()
                             }).up()
                             .cnode(messageStanza.tree())
                         );