Add listener to close stickerpicker.
This commit is contained in:
parent
73c8ef50d1
commit
b64736aa44
3 changed files with 5 additions and 1 deletions
|
@ -198,6 +198,9 @@ export default class WidgetMessaging extends MatrixPostMessageApi {
|
|||
} else if (action === 'sticker_message') {
|
||||
dis.dispatch({action: 'sticker_message', data: event.data.widgetData, widgetId: event.data.widgetId});
|
||||
} else if (action === 'integration_manager_open') {
|
||||
// Close the stickerpicker
|
||||
dis.dispatch({action: 'stickerpicker_close'});
|
||||
// Open the integration manager
|
||||
const data = event.data.widgetData;
|
||||
const integType = (data && data.integType) ? data.integType : null;
|
||||
const integId = (data && data.integId) ? data.integId : null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue