You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When calling API functions like requestOpenIDConnectToken() from within a modal widget we get an error message that the action is unknown or unsupported.
To Reproduce
Steps to reproduce the behavior:
Add a widget to your room that uses the new openModalWidget function to open a subpage of the widget in a modal
Inside of the modal use the same widget-api initialization function as provided in the examples. (Use the widget id from url for initialization)
Call another action like requestOpenIDConnectToken() or setModalButtonEnabled()
See error Unknown or unsupported action: widget_config or Unknown or unsupported action: set_button_enabled
PostmessageTransport.js:93 [PostmessageTransport] Sending object to https://element.some.domain: {api: "fromWidget", widgetId: "modal_!shZJSWfZaqJCgokLcs%3Asynapse.dev.nordeck.sy…olmer%3Asynapse.some.domain_1605884505973", requestId: "widgetapi-1606142880777", action: "get_openid", data: {…}}
rageshake.js:65 [PostmessageTransport] Sending object to https://localhost:3000: {api: "fromWidget", widgetId: "modal_!shZJSWfZaqJCgokLcs%3Asynapse.some.domain%3Asynapse.some.domain_1605884505973", requestId: "widgetapi-1606142880777", action: "get_openid", data: {…}, …}
PostmessageTransport.js:225 Uncaught (in promise) Error: Unknown or unsupported action: get_openid
at PostmessageTransport.handleResponse (PostmessageTransport.js:225)
at PostmessageTransport.handleMessage (PostmessageTransport.js:196)
at PostmessageTransport.js:164
Expected behavior
The API functions should work the same as in sidepanel or room widgets.
Desktop (please complete the following information):
OS: Windows
Browser Chrome
Additional context
We are using the latest Element Build including all commits on matrix-react/js-sdk and element-web up to Nov 21, 2020
The text was updated successfully, but these errors were encountered:
Describe the bug
When calling API functions like
requestOpenIDConnectToken()
from within a modal widget we get an error message that the action is unknown or unsupported.To Reproduce
Steps to reproduce the behavior:
openModalWidget
function to open a subpage of the widget in a modalrequestOpenIDConnectToken()
orsetModalButtonEnabled()
Unknown or unsupported action: widget_config
orUnknown or unsupported action: set_button_enabled
Expected behavior
The API functions should work the same as in sidepanel or room widgets.
Desktop (please complete the following information):
Additional context
We are using the latest Element Build including all commits on matrix-react/js-sdk and element-web up to Nov 21, 2020
The text was updated successfully, but these errors were encountered: