1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-16 22:01:54 +03:00

Change argument order of setRoomWidget

So when deleting a widget we can just omit the ones we don't need
This commit is contained in:
David Baker
2018-06-26 16:33:28 +01:00
parent a88297d7a6
commit c780cd05a8
4 changed files with 6 additions and 10 deletions

View File

@ -458,7 +458,7 @@ function _startCallApp(roomId, type) {
Date.now()
);
WidgetUtils.setRoomWidget(widgetId, 'jitsi', widgetUrl, 'Jitsi', widgetData, roomId).then(() => {
WidgetUtils.setRoomWidget(roomId, widgetId, 'jitsi', widgetUrl, 'Jitsi', widgetData).then(() => {
console.log('Jitsi widget added');
}).catch((e) => {
console.error(e);