From 829d147d1930c0f5228b804c7be1b4722ab227fe Mon Sep 17 00:00:00 2001 From: lilia Date: Tue, 14 Feb 2017 15:26:34 -0800 Subject: [PATCH] Add creation timestamps to signed keys --- js/signal_protocol_store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/signal_protocol_store.js b/js/signal_protocol_store.js index c5c167f7..5042621a 100644 --- a/js/signal_protocol_store.js +++ b/js/signal_protocol_store.js @@ -158,7 +158,8 @@ var prekey = new SignedPreKey({ id : keyId, publicKey : keyPair.pubKey, - privateKey : keyPair.privKey + privateKey : keyPair.privKey, + created_at : Date.now() }); return new Promise(function(resolve) { prekey.save().always(function() {