Fix RoomView ignoring alias lookup errors due to them not knowing the roomId (#11099)

This commit is contained in:
Michael Telatynski 2023-06-19 17:08:16 +01:00 committed by GitHub
parent 889318d3a2
commit a491795aa7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 6 deletions

View file

@ -809,3 +809,32 @@ exports[`RoomView for a local room in state NEW that is encrypted should match t
</div>
</div>
`;
exports[`RoomView should show error view if failed to look up room alias 1`] = `
<DocumentFragment>
<div
class="mx_RoomView"
>
<div
class="mx_RoomPreviewBar dark-panel mx_RoomPreviewBar_RoomNotFound mx_RoomPreviewBar_dialog"
>
<div
class="mx_RoomPreviewBar_message"
>
<h3>
#addy:server does not exist.
</h3>
<p>
Are you sure you're at the right place?
</p>
</div>
<div
class="mx_RoomPreviewBar_actions"
/>
<div
class="mx_RoomPreviewBar_footer"
/>
</div>
</div>
</DocumentFragment>
`;