mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Retry outbound reactions for up to a day
This commit is contained in:
8
ts/util/areObjectEntriesEqual.ts
Normal file
8
ts/util/areObjectEntriesEqual.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// Copyright 2021 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
export const areObjectEntriesEqual = <T>(
|
||||
a: Readonly<T>,
|
||||
b: Readonly<T>,
|
||||
keys: ReadonlyArray<keyof T>
|
||||
): boolean => a === b || keys.every(key => a[key] === b[key]);
|
||||
Reference in New Issue
Block a user