@@ -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.
@@ -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())
);