Skip to content

Commit a121091

Browse files
committed
fix: reset searchTerm on invite contact dialog closing
1 parent 0a5f354 commit a121091

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ts/components/dialog/InviteContactsDialog.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { SessionSearchInput } from '../SessionSearchInput';
2525
import { NoResultsForSearch } from '../search/NoResults';
2626
import { SessionWrapperModal2 } from '../SessionWrapperModal2';
2727
import { useHotkey } from '../../hooks/useHotkey';
28+
import { searchActions } from '../../state/ducks/search';
2829

2930
type Props = {
3031
conversationId: string;
@@ -123,6 +124,7 @@ const InviteContactsDialogInner = (props: Props) => {
123124

124125
const closeDialog = () => {
125126
dispatch(updateInviteContactModal(null));
127+
dispatch(searchActions.clearSearch());
126128
};
127129

128130
const onClickOK = () => {

0 commit comments

Comments
 (0)