mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Alter group member api
To match https://github.com/matrix-org/synapse/pull/2647
This commit is contained in:
parent
47bf991471
commit
7a09127687
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ export default withMatrixClient(React.createClass({
|
|||
return (
|
||||
<EntityTile name={name} avatarJsx={av} onClick={this.onClick}
|
||||
suppressOnHover={true} presenceState="online"
|
||||
powerStatus={this.props.member.isAdmin ? EntityTile.POWER_STATUS_ADMIN : null}
|
||||
powerStatus={this.props.member.isPrivileged ? EntityTile.POWER_STATUS_ADMIN : null}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
|
|
@ -36,7 +36,7 @@ export function groupMemberFromApiObject(apiObject) {
|
|||
userId: apiObject.user_id,
|
||||
displayname: apiObject.displayname,
|
||||
avatarUrl: apiObject.avatar_url,
|
||||
isAdmin: apiObject.is_admin,
|
||||
isPrivileged: apiObject.is_privileged,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue