Also store message id for received messages. updates #240
This commit is contained in:
parent
a717cc464a
commit
b93d43d2cb
@ -894,6 +894,7 @@
|
|||||||
delayed = $message.find('delay').length > 0,
|
delayed = $message.find('delay').length > 0,
|
||||||
fullname = this.get('fullname'),
|
fullname = this.get('fullname'),
|
||||||
is_groupchat = $message.attr('type') === 'groupchat',
|
is_groupchat = $message.attr('type') === 'groupchat',
|
||||||
|
msgid = $message.attr('id'),
|
||||||
stamp, time, sender, from;
|
stamp, time, sender, from;
|
||||||
|
|
||||||
if (is_groupchat) {
|
if (is_groupchat) {
|
||||||
@ -931,7 +932,8 @@
|
|||||||
sender: sender,
|
sender: sender,
|
||||||
delayed: delayed,
|
delayed: delayed,
|
||||||
time: time,
|
time: time,
|
||||||
message: body
|
message: body,
|
||||||
|
msgid: msgid
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user