PR feedback

This commit is contained in:
David Baker 2018-06-26 15:41:43 +01:00
parent 0a6450507e
commit 4a39297e65

View file

@ -284,11 +284,10 @@ export default class WidgetUtils {
throw new Error('User not logged in');
}
const userWidgets = client.getAccountData('m.widgets');
let userWidgetContent = {};
if (userWidgets && userWidgets.getContent()) {
userWidgetContent = userWidgets.getContent();
return userWidgets.getContent();
}
return userWidgetContent;
return {};
}
/**