Commit Graph

62 Commits (1ffc6d5bd34fa2d2e87c0ea533c7cd2d9104cf5f)

Author SHA1 Message Date
Travis Ralston 1ffc6d5bd3 Make the hangup button do things for conference calls
Behaviour constraints:
* If you're not in the conference, use a grey button that does nothing.
* If you're in the conference, show a button:
  * If you're able to modify widgets in the room, annotate it in the context of ending the call for everyone and remove the widget. Use a confirmation dialog.
  * If you're not able to modify widgets in the room, hang up.

For this we know that persistent Jitsi widgets will mean that the user is in the call, so we use that to determine if they are actually participating.
2020-09-16 14:35:55 -06:00
Travis Ralston db1eb89552 MSC numbers are hard to remember 2020-09-05 15:10:28 -06:00
Travis Ralston 355d8f5843 Update openid_credentials Widget API action for MSC1960 updates
We now need to send a `state` and `original_request_id` per MSC1960's recent adjustments
2020-09-05 15:06:31 -06:00
J. Ryan Stinnett ce226ab534 Replace Riot with Element in docs and comments
This only covers the simple cases of references to issues and repos. More
complex areas, such as deployment scripts, will be handled separately.

Part of https://github.com/vector-im/element-web/issues/14864
2020-08-03 18:33:36 +01:00
Travis Ralston e4aeabe5a6
Merge pull request #4444 from pv/jitsi-popout-immediate-join
Ensure active Jitsi conference is closed on widget pop-out
2020-06-07 20:22:39 -06:00
David Baker 50107ebe47 Re-fix OpenID requests from widgets
https://github.com/matrix-org/matrix-react-sdk/pull/4591 reverted
https://github.com/matrix-org/matrix-react-sdk/pull/4459. We need
to pass both URLs as we need both the wURL (for the widget's 'identity'
ie. OpenID) and the URL that's actually in the iframe (for the
messaging).
2020-05-13 16:10:40 +01:00
Pauli Virtanen cf4137d4b2 Make WidgetAPI an EventEmitter + use for terminate + cleanups
Use EventEmitter for emitting events, rename terminate event code,
plus misc cleanups from review.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-22 19:37:52 +03:00
Pauli Virtanen 1f2bf0485e Implement widget API for signaling the widget to gracefully terminate
In theory, widgets could use iframe unload/beforeunload events for
cleanup, but in practice browsers have restrictions on what can be done
in those events which may not give sufficient time for clean
termination.

Signed-off-by: Pauli Virtanen <pav@iki.fi>
2020-04-22 19:37:52 +03:00
Travis Ralston ba0a9c8439 Use console.log in place of console.warn for less warnings
These aren't react warnings, but they are distracting in the logs.
2020-04-01 13:59:48 -06:00
Travis Ralston 7ea61e4105 Appease the linter 2020-03-24 10:05:57 -06:00
Travis Ralston bdcb65de77 Support and send the config over to capable widgets
For https://github.com/vector-im/riot-web/pull/12845
2020-03-24 09:55:54 -06:00
Travis Ralston 042bd35d79 Fix MatrixClientPeg imports 2019-12-22 21:15:54 -07:00
Travis Ralston 69fcebf045 Use allow/deny instead of whitelist/blacklist for terminology 2019-03-25 21:14:21 -06:00
Travis Ralston 2dcb40f1be Track OpenID automatic permissions by (widgetLocation, widgetUrl) 2019-03-23 23:25:31 -06:00
Travis Ralston 21d52a8311 Use the same function name to bind the OpenID request handler 2019-03-23 22:50:26 -06:00
Travis Ralston b48842e070 Fix imports for linter 2019-03-15 21:51:19 -06:00
Travis Ralston f045beafc3 Support whitelisting/blacklisting widgets for OpenID 2019-03-15 21:33:31 -06:00
Travis Ralston d63c5e7134 Basic widget OpenID reauth implementation
Covers the minimum of https://github.com/vector-im/riot-web/issues/7153

This does not handling automatically accepting/blocking widgets yet, however. This could lead to dialog irritation.
2019-03-13 00:34:34 -06:00
Travis Ralston 98da8b3575 Send the widgetId as part of all toWidget requests
Addresses part of https://github.com/vector-im/riot-web/issues/6708

Signed-off-by: Travis Ralston <travpc@gmail.com>
2018-05-12 14:32:12 -06:00
Luke Barnard 4b6378a80d Add API to send visibiliy actions to widgets 2018-05-11 16:22:54 +01:00
Richard Lewis 4ac9653ab9 Refactor widget postMessage API. 2018-03-28 12:22:06 +01:00
Richard Lewis 53b716bad6 Throw capability request exception. 2018-03-13 10:51:01 +00:00
Richard Lewis b2d23b6999 Switch to 'm.sticker' message events. Allow whitelisting of wisget capabilities. 2018-03-12 13:56:02 +00:00
Richard Lewis b64736aa44 Add listener to close stickerpicker. 2018-02-26 13:43:16 +00:00
Richard Lewis 14d52c9f25 Open integration manager from widget postMessage. 2018-02-26 13:29:16 +00:00
Richard Lewis c93faf7de7 Fix promise wrapping. 2018-02-25 22:21:30 +00:00
Richard Lewis 57b027b776 Fix API names. 2018-02-23 15:11:28 +00:00
Richard Lewis 23bef68a8f Fix duplicate message listeners 2018-01-18 13:16:06 +00:00
Richard Lewis 7b313b7acf Comment logging. 2018-01-04 22:38:52 +00:00
Richard Lewis d20aebfbd7 Correctly handle sticker message events. 2018-01-04 18:58:55 +00:00
Richard Lewis da199da798 Merge branch 'rxl881/snapshot' of https://github.com/matrix-org/matrix-react-sdk into rxl881/snapshot 2018-01-04 18:43:18 +00:00
Richard Lewis 32aecd0630 Fix event call 2018-01-04 18:43:08 +00:00
Richard Lewis eb4053bc99 Handle sticker message payloads 2018-01-04 18:41:47 +00:00
Richard Lewis b85efa08ce Merge branch 'rxl881/snapshot' of github.com:matrix-org/matrix-react-sdk into rxl881/snapshot 2018-01-04 09:53:29 +00:00
Richard Lewis e96d199b28 Inject stickers 2018-01-04 09:53:26 +00:00
Richard Lewis a408b98504 Set widget ID on WidgetMessaging instance. 2017-12-29 14:34:52 +00:00
Richard Lewis 7b59774b34 Update comment. 2017-12-28 17:08:50 +00:00
Richard Lewis 536d4efc40 Fix comments. 2017-12-19 17:11:36 +00:00
Richard Lewis 83f9a4162b Request capabilities (e.g. ability to take snapshots) from widgets. 2017-12-16 09:16:24 +00:00
Richard Lewis e63f5696a6 Screenshot handlers 2017-12-15 21:36:02 +00:00
Richard Lewis 954c6eecd6 Set correct API name. 2017-12-15 19:42:06 +00:00
Richard Lewis 9f733ebc94 Fix binding and promise handling 2017-12-15 16:55:33 +00:00
Richard Lewis 56f497d39e Add comments and outbound postmessage action to request a widget screenshot. 2017-12-15 16:39:04 +00:00
Richard Lewis c234e209fb Add postmessage api and move functions in to class 2017-12-15 15:24:22 +00:00
Richard Lewis e20db416f2 Add field to bypass riot widget loading screen. 2017-12-06 16:44:41 +00:00
Richard Lewis ac36f93c3f Remove logging. 2017-12-05 11:00:38 +00:00
Richard Lewis 59f9e388d4 Remove logging. 2017-12-05 00:11:01 +00:00
Richard Lewis 49a2985515 Register message endpoints.
Store endpoint origins only.
2017-12-05 00:08:17 +00:00
Richard Lewis 8595053d28 Update API data docs. 2017-12-04 18:06:05 +00:00
Richard Lewis df1fa80ff6 Use global object for listener count and messaging endpoints. 2017-12-04 17:54:00 +00:00