You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
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>
This commit is contained in:
@@ -89,8 +89,6 @@ export default class WidgetMessaging {
|
||||
|
||||
/**
|
||||
* Tells the widget that it should terminate now.
|
||||
* It is not necessarily called in all instances before the widget is removed,
|
||||
* and the client may force termination with a timeout.
|
||||
* @returns {Promise<*>} Resolves when widget has acknowledged the message.
|
||||
*/
|
||||
terminate() {
|
||||
|
||||
Reference in New Issue
Block a user