resetSession: Take both UUID and e164, use each correctly
This commit is contained in:
@@ -1727,7 +1727,8 @@
|
||||
message.send(
|
||||
this.wrapSend(
|
||||
textsecure.messaging.resetSession(
|
||||
this.get('uuid') || this.get('e164'),
|
||||
this.get('uuid'),
|
||||
this.get('e164'),
|
||||
now,
|
||||
options
|
||||
)
|
||||
|
@@ -583,9 +583,9 @@
|
||||
nonblockingApproval = false;
|
||||
}
|
||||
|
||||
const identifer = textsecure.utils.unencodeNumber(encodedAddress)[0];
|
||||
const identityRecord = this.getIdentityRecord(identifer);
|
||||
const id = ConversationController.getConversationId(identifer);
|
||||
const identifier = textsecure.utils.unencodeNumber(encodedAddress)[0];
|
||||
const identityRecord = this.getIdentityRecord(identifier);
|
||||
const id = ConversationController.getConversationId(identifier);
|
||||
|
||||
if (!identityRecord || !identityRecord.publicKey) {
|
||||
// Lookup failed, or the current key was removed, so save this one.
|
||||
@@ -626,7 +626,7 @@
|
||||
});
|
||||
|
||||
try {
|
||||
this.trigger('keychange', identifer);
|
||||
this.trigger('keychange', identifier);
|
||||
} catch (error) {
|
||||
window.log.error(
|
||||
'saveIdentity error triggering keychange:',
|
||||
|
Reference in New Issue
Block a user