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:
Julien CLEMENT
2025-04-14 15:36:34 +02:00
committed by GitHub
parent 7ce0a76414
commit 475e449e81
6 changed files with 24 additions and 22 deletions

View File

@@ -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 />
)}