Merge (un)encrypted storage layers
This commit is contained in:
parent
454b4726bd
commit
00cb420d37
12 changed files with 102 additions and 143 deletions
|
@ -5,16 +5,16 @@
|
|||
;(function() {
|
||||
var axolotlInstance = axolotl.protocol({
|
||||
getMyRegistrationId: function() {
|
||||
return textsecure.storage.getUnencrypted("registrationId");
|
||||
return textsecure.storage.get("registrationId");
|
||||
},
|
||||
put: function(key, value) {
|
||||
return textsecure.storage.putEncrypted(key, value);
|
||||
return textsecure.storage.put(key, value);
|
||||
},
|
||||
get: function(key, defaultValue) {
|
||||
return textsecure.storage.getEncrypted(key, defaultValue);
|
||||
return textsecure.storage.get(key, defaultValue);
|
||||
},
|
||||
remove: function(key) {
|
||||
return textsecure.storage.removeEncrypted(key);
|
||||
return textsecure.storage.remove(key);
|
||||
},
|
||||
|
||||
identityKeys: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue