From eebb14599f4f89cfcf1157411bbf1605197b05a9 Mon Sep 17 00:00:00 2001 From: lilia Date: Sat, 25 Oct 2014 18:06:12 -0700 Subject: [PATCH] Well that's handy --- js/models/messages.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/models/messages.js b/js/models/messages.js index b6827430..0c480653 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -35,8 +35,7 @@ var Whisper = Whisper || {}; attachments[i] = "data:" + decrypted.message.attachments[i].contentType + ";base64," + btoa(getString(decrypted.message.attachments[i].decrypted)); var thread = Whisper.Threads.findOrCreateForIncomingMessage(decrypted); - var timestamp = Math.pow(2,32) * decrypted.pushMessage.timestamp.high - + decrypted.pushMessage.timestamp.low; + var timestamp = decrypted.pushMessage.timestamp.toNumber(); var m = thread.messages().add({ person: decrypted.pushMessage.source, threadId: thread.id,