10 lines
344 B
TypeScript
10 lines
344 B
TypeScript
|
// Copyright 2020-2022 Signal Messenger, LLC
|
||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||
|
|
||
|
import type { ConversationAttributesType } from '../model-types.d';
|
||
|
|
||
|
export const isConversationMuted = ({
|
||
|
muteExpiresAt,
|
||
|
}: Readonly<Pick<ConversationAttributesType, 'muteExpiresAt'>>): boolean =>
|
||
|
Boolean(muteExpiresAt && Date.now() < muteExpiresAt);
|