Fix typo and improve error context
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
af2eed2228
commit
67ffe94df4
2 changed files with 2 additions and 2 deletions
|
@ -1676,7 +1676,7 @@ export default createReactClass({
|
||||||
const ErrorBoundary = sdk.getComponent("elements.ErrorBoundary");
|
const ErrorBoundary = sdk.getComponent("elements.ErrorBoundary");
|
||||||
|
|
||||||
if (!this.state.room) {
|
if (!this.state.room) {
|
||||||
const loading = this.state.matrixClientIsReady || this.state.roomLoading || this.state.peekLoading;
|
const loading = !this.state.matrixClientIsReady || this.state.roomLoading || this.state.peekLoading;
|
||||||
if (loading) {
|
if (loading) {
|
||||||
// Assume preview loading if we don't have a ready client or a room ID (still resolving the alias)
|
// Assume preview loading if we don't have a ready client or a room ID (still resolving the alias)
|
||||||
const previewLoading = !this.state.matrixClientIsReady || !this.state.roomId || this.state.peekLoading;
|
const previewLoading = !this.state.matrixClientIsReady || !this.state.roomId || this.state.peekLoading;
|
||||||
|
|
|
@ -215,7 +215,7 @@ class RoomViewStore extends Store {
|
||||||
storeRoomAliasInCache(payload.room_alias, result.room_id);
|
storeRoomAliasInCache(payload.room_alias, result.room_id);
|
||||||
roomId = result.room_id;
|
roomId = result.room_id;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error("RVS failed to get room id for alias: ", err);
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'view_room_error',
|
action: 'view_room_error',
|
||||||
room_id: null,
|
room_id: null,
|
||||||
|
|
Loading…
Reference in a new issue