Switch to 'm.sticker' message events. Allow whitelisting of wisget capabilities.

This commit is contained in:
Richard Lewis 2018-03-12 13:56:02 +00:00
parent 46f46ee294
commit b2d23b6999
6 changed files with 41 additions and 13 deletions

View file

@ -195,8 +195,8 @@ export default class WidgetMessaging extends MatrixPostMessageApi {
api: INBOUND_API_NAME,
version: WIDGET_API_VERSION,
});
} else if (action === 'sticker_message') {
dis.dispatch({action: 'sticker_message', data: event.data.widgetData, widgetId: event.data.widgetId});
} else if (action === 'm.sticker') {
dis.dispatch({action: 'm.sticker', data: event.data.widgetData, widgetId: event.data.widgetId});
} else if (action === 'integration_manager_open') {
// Close the stickerpicker
dis.dispatch({action: 'stickerpicker_close'});