diff --git a/src/WidgetMessaging.js b/src/WidgetMessaging.js index 93fee6133b..bae71bdc8f 100644 --- a/src/WidgetMessaging.js +++ b/src/WidgetMessaging.js @@ -277,8 +277,7 @@ export default class WidgetMessaging extends MatrixPostMessageApi { return this.exec({ api: OUTBOUND_API_NAME, action: "capabilities", - }).then((response) => response.capabilities) - .catch((error) => new Error("Failed to get capabilities: " + error.message)); + }).then((response) => response.capabilities); } }