From 4f161fb891c42fe86996fe7ad42133610ea7af14 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Mon, 17 Jan 2022 12:19:35 +0530 Subject: [PATCH] Disabe search input in encrypted room Signed-off-by: Ajay Bura --- src/app/molecules/room-search/RoomSearch.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/molecules/room-search/RoomSearch.jsx b/src/app/molecules/room-search/RoomSearch.jsx index 39b83b4..3a86cbe 100644 --- a/src/app/molecules/room-search/RoomSearch.jsx +++ b/src/app/molecules/room-search/RoomSearch.jsx @@ -109,8 +109,8 @@ function RoomSearch({ roomId }) { const searchTerm = searchData?._query.search_categories.room_events.search_term ?? ''; const handleSearch = (e) => { - if (isRoomEncrypted) return; e.preventDefault(); + if (isRoomEncrypted) return; const searchTermInput = e.target.elements['room-search-input']; const term = searchTermInput.value.trim(); @@ -144,6 +144,7 @@ function RoomSearch({ roomId }) {