mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 10:45:51 +03:00
Don't pop up errors when this API fails for guests
This commit is contained in:
parent
776fe2ad70
commit
000ca35727
1 changed files with 6 additions and 0 deletions
|
@ -82,6 +82,12 @@ module.exports = React.createClass({
|
|||
MatrixClientPeg.get().getThirdpartyProtocols().done((response) => {
|
||||
this.protocols = response;
|
||||
}, (err) => {
|
||||
if (MatrixClientPeg.get().isGuest()) {
|
||||
// Guests currently aren't allowed to use this API, so
|
||||
// ignore this as otherwise this error is literally the
|
||||
// thing you see when loading the client!
|
||||
return;
|
||||
}
|
||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||
Modal.createDialog(ErrorDialog, {
|
||||
title: "Failed to get protocol list from Home Server",
|
||||
|
|
Loading…
Reference in a new issue