2023-01-03 19:55:46 +00:00
|
|
|
// Copyright 2020 Signal Messenger, LLC
|
2022-05-23 18:37:53 +00:00
|
|
|
// 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);
|