Use axolotl.api for a few more things in libaxolotl/protocol.js
This commit is contained in:
parent
403ae4376d
commit
c1907b14eb
2 changed files with 11 additions and 8 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue