Replace buffer.slice() with buffer.subarray()
This commit is contained in:
parent
4a6e2d297b
commit
b0634f9a9d
19 changed files with 54 additions and 45 deletions
|
@ -1923,7 +1923,7 @@ export class SignalProtocolStore extends EventEmitter {
|
|||
}
|
||||
|
||||
const hash = sha256(pubKey);
|
||||
const fingerprint = hash.slice(0, 4);
|
||||
const fingerprint = hash.subarray(0, 4);
|
||||
|
||||
return Bytes.toBase64(fingerprint);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue