message: Get user widgets by default (if roomID is not specified).
diff: @@ -624,24 +624,22 @@ const onMessage = function(event) {
  const roomId = event.data.room_id;
  const userId = event.data.user_id;
  + if (!roomId) {
  // These APIs don't require roomId
  // Get and set user widgets (not associated with a specific room)
  // If roomId is specified, it must be validated, so room-based widgets agreed
  // handled further down.
  - if (event.data.userWidget) {
  if (event.data.action === "get_widgets") {
  getWidgets(event, null);
  return;
  } else if (event.data.action === "set_widget") {
  setWidget(event, null);
  return;
  - }
  - }
  -
  - if (!roomId) {
  + } else {
  sendError(event, _t('Missing room_id in request'));
  return;
  }
  + }
  let promise = Promise.resolve(currentRoomId);
  if (!currentRoomId) {
  if (!currentRoomAlias) {
  