Move groups storage back to libtextsecure

This commit is contained in:
Matt Corallo 2015-01-20 19:48:27 -10:00 committed by lilia
parent 04b2a13a75
commit 3e648b0ea0
3 changed files with 8 additions and 20 deletions

View file

@ -5,15 +5,9 @@
;(function() {
window.axolotl = window.axolotl || {};
window.axolotl.api = {
getMyIdentifier: function() {
return textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0];
},
getMyRegistrationId: function() {
return textsecure.storage.getUnencrypted("registrationId");
},
isIdentifierSane: function(identifier) {
return textsecure.utils.isNumberSane(identifier);
},
storage: {
put: function(key, value) {
return textsecure.storage.putEncrypted(key, value);