Remove 10-edit limit for note to self
This commit is contained in:
13
ts/util/isMessageNoteToSelf.ts
Normal file
13
ts/util/isMessageNoteToSelf.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
// 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()
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user