another fix for #124

This commit is contained in:
or-else
2023-04-25 12:31:07 -07:00
parent 2b7c80ef2d
commit 5d56c17128
20 changed files with 55 additions and 41 deletions
+3 -3
View File
@@ -25,7 +25,7 @@ const messages = defineMessages({
},
search_placeholder: {
id: "search_placeholder",
defaultMessage: "List like email:alice@example.com, tel:17025550003...",
defaultMessage: "List like alice@example.com, +17025550003...",
description: "Placeholder in contacts search field"
},
});
@@ -61,10 +61,10 @@ class NewTopicView extends React.Component {
this.setState({searchQuery: Tinode.isNullValue(query) ? null : query});
}
handleSearchResultSelected(name) {
handleSearchResultSelected(topicName) {
if (this.state.tabSelected == 'find') {
HashNavigation.navigateTo(HashNavigation.removeUrlParam(window.location.hash, 'tab'));
this.props.onCreateTopic(name);
this.props.onCreateTopic(topicName);
}
}