Use axolotl.api for a few more things in libaxolotl/protocol.js

This commit is contained in:
Matt Corallo 2015-01-15 18:29:32 -10:00 committed by lilia
parent 403ae4376d
commit c1907b14eb
2 changed files with 11 additions and 8 deletions

View file

@ -8,6 +8,9 @@
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);
},