From 44ea11d386f2ac9be1e2b84d5cd887b2af81d18d Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Wed, 9 May 2018 16:55:49 +0100 Subject: [PATCH] Fix 'state_key' field name. --- src/ScalarMessaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScalarMessaging.js b/src/ScalarMessaging.js index 123d02159e..a163bf7bbd 100644 --- a/src/ScalarMessaging.js +++ b/src/ScalarMessaging.js @@ -349,7 +349,7 @@ function setWidget(event, roomId) { userWidgets[widgetId] = { content: content, sender: client.getUserId(), - stateKey: widgetId, + state_key: widgetId, type: 'm.widget', id: widgetId, };