|
|
@ -97,6 +97,11 @@ function unpad(paddedData: ArrayBuffer): ArrayBuffer {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export async function isBlocked(number: string) {
|
|
|
|
export async function isBlocked(number: string) {
|
|
|
|
|
|
|
|
const ourDevice = await MultiDeviceProtocol.isOurDevice(number);
|
|
|
|
|
|
|
|
if (ourDevice) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const primary = await MultiDeviceProtocol.getPrimaryDevice(number);
|
|
|
|
const primary = await MultiDeviceProtocol.getPrimaryDevice(number);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
BlockedNumberController.isBlocked(primary) ||
|
|
|
|
BlockedNumberController.isBlocked(primary) ||
|
|
|
|