You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Catch errors adding widget
This commit is contained in:
@@ -404,6 +404,8 @@ function setWidget(event, roomId) {
|
||||
});
|
||||
|
||||
dis.dispatch({ action: "user_widget_updated" });
|
||||
}).catch((e) => {
|
||||
sendError(event, _t('Error adding widget'));
|
||||
});
|
||||
} else { // Room widget
|
||||
if (!roomId) {
|
||||
|
||||
Reference in New Issue
Block a user