Remove 10-edit limit for note to self

This commit is contained in:
yash-signal 2024-10-11 11:30:10 -05:00 committed by GitHub
parent f3aae86796
commit d42df4b201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 25 deletions

View 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()
);
}