Also store message id for received messages. updates #240

This commit is contained in:
JC Brand 2014-10-15 19:49:16 +02:00
parent a717cc464a
commit b93d43d2cb

View File

@ -894,6 +894,7 @@
delayed = $message.find('delay').length > 0,
fullname = this.get('fullname'),
is_groupchat = $message.attr('type') === 'groupchat',
msgid = $message.attr('id'),
stamp, time, sender, from;
if (is_groupchat) {
@ -931,7 +932,8 @@
sender: sender,
delayed: delayed,
time: time,
message: body
message: body,
msgid: msgid
});
}
},