1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-21 16:55:10 -05:00

Update to latest stanza.io

This commit is contained in:
Lance Stout 2014-01-07 22:43:59 -08:00
parent 5945858b4a
commit 527d711585
2 changed files with 8 additions and 4 deletions

View File

@ -161,6 +161,7 @@ module.exports = BasePage.extend({
});
message = {
id: client.nextId(),
to: client.JID(this.model.lockedResource || this.model.jid),
type: 'chat',
body: val,
@ -174,9 +175,12 @@ module.exports = BasePage.extend({
message.replace = this.model.lastSentMessage.id;
}
var id = client.sendMessage(message);
message.mid = id;
client.sendMessage(message);
// Prep message to create a Message model
message.from = me.jid;
message.mid = message.id;
delete message.id;
if (this.editMode) {
this.model.lastSentMessage.correct(message);

View File

@ -18,7 +18,7 @@
"getusermedia": "0.2.1",
"helmet": "0.1.0",
"human-model": "2.6.0",
"human-view": "1.2.0",
"human-view": "1.5.0",
"jade": "0.35.0",
"moonboots": "1.0.0",
"node-uuid": "1.4.1",
@ -26,7 +26,7 @@
"oembed": "0.1.0",
"semi-static": "0.0.4",
"sound-effect-manager": "0.0.5",
"stanza.io": "2.13.1",
"stanza.io": "3.0.0",
"staydown": "1.0.3",
"templatizer": "0.1.2",
"underscore": "1.5.1",