mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 16:08:34 +01:00
Fix UI bug with self-add by username in groups
This commit is contained in:
@@ -55,6 +55,7 @@ export type StatePropsType = {
|
||||
i18n: LocalizerType;
|
||||
theme: ThemeType;
|
||||
maxGroupSize: number;
|
||||
ourUsername: string | undefined;
|
||||
searchTerm: string;
|
||||
selectedContacts: ReadonlyArray<ConversationType>;
|
||||
|
||||
@@ -85,6 +86,7 @@ export function ChooseGroupMembersModal({
|
||||
i18n,
|
||||
maxGroupSize,
|
||||
onClose,
|
||||
ourUsername,
|
||||
removeSelectedContact,
|
||||
searchTerm,
|
||||
selectedContacts,
|
||||
@@ -110,6 +112,7 @@ export function ChooseGroupMembersModal({
|
||||
|
||||
isUsernameVisible =
|
||||
Boolean(username) &&
|
||||
username !== ourUsername &&
|
||||
candidateContacts.every(contact => contact.username !== username);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user