Maintain original received time when processing queued/error msgs
FREEBIE
This commit is contained in:
parent
8700112f6d
commit
620b71a649
3 changed files with 13 additions and 3 deletions
|
@ -288,13 +288,11 @@
|
|||
}
|
||||
|
||||
function initIncomingMessage(data) {
|
||||
var now = new Date().getTime();
|
||||
|
||||
var message = new Whisper.Message({
|
||||
source : data.source,
|
||||
sourceDevice : data.sourceDevice,
|
||||
sent_at : data.timestamp,
|
||||
received_at : now,
|
||||
received_at : data.receivedAt || Date.now(),
|
||||
conversationId : data.source,
|
||||
type : 'incoming',
|
||||
unread : 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue