Don't search conversations if searching within conversation

This commit is contained in:
Scott Nonnenberg 2019-09-05 08:59:21 -07:00 committed by GitHub
parent c9fd199b48
commit e39c6e5321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 31 deletions

View file

@ -76,7 +76,7 @@ export class MainHeader extends React.Component<PropsType> {
searchConversationId,
} = this.props;
if (searchDiscussions) {
if (searchDiscussions && !searchConversationId) {
searchDiscussions(searchTerm, {
noteToSelf: i18n('noteToSelf').toLowerCase(),
ourNumber,
@ -89,7 +89,7 @@ export class MainHeader extends React.Component<PropsType> {
regionCode,
});
}
}, 50);
}, 200);
public updateSearch = (event: React.FormEvent<HTMLInputElement>) => {
const {