signal-desktop/ts/util/isMessageNoteToSelf.ts
automated-signal 850b78042b
Remove 10-edit limit for note to self
Co-authored-by: yash-signal <yash@signal.org>
2024-10-15 13:14:53 -07:00

13 lines
376 B
TypeScript

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { ReadonlyMessageAttributesType } from '../model-types.d';
export function isMessageNoteToSelf(
message: Pick<ReadonlyMessageAttributesType, 'conversationId'>
): boolean {
return (
message.conversationId ===
window.ConversationController.getOurConversationId()
);
}