mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
PR feedback
This commit is contained in:
parent
0a6450507e
commit
4a39297e65
@ -284,11 +284,10 @@ export default class WidgetUtils {
|
|||||||
throw new Error('User not logged in');
|
throw new Error('User not logged in');
|
||||||
}
|
}
|
||||||
const userWidgets = client.getAccountData('m.widgets');
|
const userWidgets = client.getAccountData('m.widgets');
|
||||||
let userWidgetContent = {};
|
|
||||||
if (userWidgets && userWidgets.getContent()) {
|
if (userWidgets && userWidgets.getContent()) {
|
||||||
userWidgetContent = userWidgets.getContent();
|
return userWidgets.getContent();
|
||||||
}
|
}
|
||||||
return userWidgetContent;
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user