signal-desktop/ts/util/isMuted.ts

7 lines
218 B
TypeScript
Raw Normal View History

2020-10-30 20:34:04 +00:00
// Copyright 2020 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2020-10-30 17:52:21 +00:00
export function isMuted(muteExpiresAt: undefined | number): boolean {
return Boolean(muteExpiresAt && Date.now() < muteExpiresAt);
}