Remove 10-edit limit for note to self
This commit is contained in:
parent
f3aae86796
commit
d42df4b201
3 changed files with 26 additions and 25 deletions
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()
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue