Well that's handy
This commit is contained in:
parent
674b173c59
commit
eebb14599f
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ var Whisper = Whisper || {};
|
||||||
attachments[i] = "data:" + decrypted.message.attachments[i].contentType + ";base64," + btoa(getString(decrypted.message.attachments[i].decrypted));
|
attachments[i] = "data:" + decrypted.message.attachments[i].contentType + ";base64," + btoa(getString(decrypted.message.attachments[i].decrypted));
|
||||||
|
|
||||||
var thread = Whisper.Threads.findOrCreateForIncomingMessage(decrypted);
|
var thread = Whisper.Threads.findOrCreateForIncomingMessage(decrypted);
|
||||||
var timestamp = Math.pow(2,32) * decrypted.pushMessage.timestamp.high
|
var timestamp = decrypted.pushMessage.timestamp.toNumber();
|
||||||
+ decrypted.pushMessage.timestamp.low;
|
|
||||||
var m = thread.messages().add({
|
var m = thread.messages().add({
|
||||||
person: decrypted.pushMessage.source,
|
person: decrypted.pushMessage.source,
|
||||||
threadId: thread.id,
|
threadId: thread.id,
|
||||||
|
|
Loading…
Reference in a new issue