You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-20 16:22:28 +03:00
Change argument order of setRoomWidget
So when deleting a widget we can just omit the ones we don't need
This commit is contained in:
@@ -321,12 +321,8 @@ export default class AppTile extends React.Component {
|
||||
this.setState({deleting: true});
|
||||
|
||||
WidgetUtils.setRoomWidget(
|
||||
this.props.id,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
this.props.room.roomId,
|
||||
this.props.id,
|
||||
).catch((e) => {
|
||||
console.error('Failed to delete widget', e);
|
||||
}).finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user