mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 09:58:12 +01:00
Replace buffer.slice() with buffer.subarray()
This commit is contained in:
@@ -143,7 +143,7 @@ export class ParseContactsTransform extends Transform {
|
||||
const spaceLeftAfterRead = reader.len - (reader.pos + attachmentSize);
|
||||
if (spaceLeftAfterRead >= 0) {
|
||||
// We've read enough data to read the entire attachment
|
||||
const avatarData = reader.buf.slice(
|
||||
const avatarData = reader.buf.subarray(
|
||||
reader.pos,
|
||||
reader.pos + attachmentSize
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user