Replace load/decode/index around our own number with helpers

This commit is contained in:
Matt Corallo 2015-03-24 15:48:59 -07:00 committed by lilia
parent 3759fe46e9
commit 454b4726bd
12 changed files with 120 additions and 41 deletions

View file

@ -58,9 +58,7 @@
var view = new Whisper.KeyVerificationView({
model: {
their_key: textsecure.storage.devices.getIdentityKeyForNumber(number),
your_key: textsecure.storage.devices.getIdentityKeyForNumber(
textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0]
)
your_key: textsecure.storage.devices.getIdentityKeyForNumber(textsecure.storage.user.getNumber())
}
});
this.$el.hide();