print better errors in the search view instead of a blocking modal (#29724)
* print better errors in the search view instead of a blocking modal * update tests and i18n * fix unused variable * fix unused variable again
This commit is contained in:
@@ -40,6 +40,8 @@ const RoomSearchAuxPanel: React.FC<Props> = ({ searchInfo, isRoomEncrypted, onSe
|
||||
{ count: searchInfo.count },
|
||||
{ query: () => <strong>{searchInfo.term}</strong> },
|
||||
)
|
||||
) : searchInfo?.error !== undefined ? (
|
||||
searchInfo?.error.message
|
||||
) : (
|
||||
<InlineSpinner />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user