update methods to match new synapse server method

develop
Morisse 6 years ago
parent 3217636b22
commit 7c7a6492cd
  1. 2
      src/DataToTable.js
  2. 2
      src/UserRightPanel.js

@ -66,7 +66,7 @@ const tableType = // here we declare all the type of table we wish to display
'Default': 'Member',
},
'Deactivated': {
'name': 'is_deactivate',
'name': 'is_deactivated',
'type': 'boolean',
},
},

@ -106,7 +106,7 @@ export default class UserRightPanel extends Component {
const userRequest
= await fetch(homeServer+ '_matrix/client/r0/watchaupdatomember/'+
encodeURIComponent(this.props.data['User Id']['data']), {
method: 'POST',
method: 'PUT',
headers: {
'Authorization': 'Bearer '+ accessToken,
'Accept': 'application/json',

Loading…
Cancel
Save