Receive support for Sender Key
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
parent
e5f9c0db28
commit
e6bab06510
28 changed files with 743 additions and 164 deletions
10
ts/util/isByteBufferEmpty.ts
Normal file
10
ts/util/isByteBufferEmpty.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { isNumber } from 'lodash';
|
||||
|
||||
import { ByteBufferClass } from '../window.d';
|
||||
|
||||
export function isByteBufferEmpty(data?: ByteBufferClass): boolean {
|
||||
return !data || !isNumber(data.limit) || data.limit === 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue