Skip to content

Commit 000ca35

Browse files
committed
Don't pop up errors when this API fails for guests
1 parent 776fe2a commit 000ca35

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎src/components/structures/RoomDirectory.js‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ module.exports = React.createClass({
8282
MatrixClientPeg.get().getThirdpartyProtocols().done((response) => {
8383
this.protocols = response;
8484
}, (err) => {
85+
if (MatrixClientPeg.get().isGuest()) {
86+
// Guests currently aren't allowed to use this API, so
87+
// ignore this as otherwise this error is literally the
88+
// thing you see when loading the client!
89+
return;
90+
}
8591
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
8692
Modal.createDialog(ErrorDialog, {
8793
title: "Failed to get protocol list from Home Server",

0 commit comments

Comments
 (0)