cosmetic fixes, rebuilt

This commit is contained in:
or-else
2025-05-28 12:56:17 +03:00
parent 6fdc208ca7
commit 28f332f56a
10 changed files with 990 additions and 465 deletions
+2 -4
View File
@@ -57,10 +57,8 @@ class NewTopicView extends React.Component {
}
handleSearchContacts(query) {
query = query.trim();
if (!query) {
query = Tinode.DEL_CHAR;
} else if (!/[\s,:]/.test(query) && query != Tinode.DEL_CHAR) {
query = query.trim() || Tinode.DEL_CHAR;
if (!/[\s,:]/.test(query) && query != Tinode.DEL_CHAR) {
// No colons, spaces or commas, not DEL char. Try as email, phone, or alias.
const email = asEmail(query);
if (email) {