1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-20 16:22:28 +03:00

Merge pull request #1958 from matrix-org/dbkr/widget_waiting

Fix widgets re-appearing after being deleted
This commit is contained in:
Luke Barnard
2018-06-14 17:31:23 +01:00
committed by GitHub
3 changed files with 168 additions and 138 deletions

View File

@@ -324,7 +324,9 @@ export default class AppTile extends React.Component {
'im.vector.modular.widgets',
{}, // empty content
this.props.id,
).catch((e) => {
).then(() => {
return WidgetUtils.waitForRoomWidget(this.props.id, this.props.room.roomId, false);
}).catch((e) => {
console.error('Failed to delete widget', e);
}).finally(() => {
this.setState({deleting: false});