Fix self-mention in groups

This commit is contained in:
Fedor Indutny 2024-12-20 10:33:01 -08:00 committed by GitHub
parent 6f1d767c72
commit 4312d03db0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 44 additions and 19 deletions

View file

@ -139,6 +139,7 @@ export type Props = Readonly<{
timestamp: number
): unknown;
onScroll?: (ev: React.UIEvent<HTMLElement>) => void;
ourConversationId: string | undefined;
platform: string;
quotedMessageId: string | null;
shouldHidePopovers: boolean | null;
@ -173,6 +174,7 @@ export function CompositionInput(props: Props): React.ReactElement {
onPickEmoji,
onScroll,
onSubmit,
ourConversationId,
placeholder,
platform,
quotedMessageId,
@ -781,11 +783,9 @@ export function CompositionInput(props: Props): React.ReactElement {
},
mentionCompletion: {
getPreferredBadge,
me: sortedGroupMembers
? sortedGroupMembers.find(foo => foo.isMe)
: undefined,
memberRepositoryRef,
setMentionPickerElement: setMentionCompletionElement,
ourConversationId,
i18n,
theme,
},